<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>libcoap: net.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">libcoap<span id="projectnumber">&#160;4.2.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function() { init_codefold(0); });
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('net_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="headertitle"><div class="title">net.h</div></div>
</div><!--header-->
<div class="contents">
<a href="net_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="comment">/*</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span><span class="comment"> * net.h -- CoAP network interface</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span><span class="comment"> *</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span><span class="comment"> * Copyright (C) 2010-2015 Olaf Bergmann &lt;bergmann@tzi.org&gt;</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span><span class="comment"> *</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span><span class="comment"> * This file is part of the CoAP library libcoap. Please see README for terms</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span><span class="comment"> * of use.</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span><span class="comment"> */</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span> </div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span><span class="preprocessor">#ifndef COAP_NET_H_</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span><span class="preprocessor">#define COAP_NET_H_</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span> </div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span><span class="preprocessor">#include &lt;assert.h&gt;</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span><span class="preprocessor">#include &lt;stdlib.h&gt;</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span><span class="preprocessor">#include &lt;string.h&gt;</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span><span class="preprocessor">#ifndef _WIN32</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span><span class="preprocessor">#include &lt;sys/time.h&gt;</span></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span><span class="preprocessor">#include &lt;time.h&gt;</span></div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span> </div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span><span class="preprocessor">#ifdef WITH_LWIP</span></div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span><span class="preprocessor">#include &lt;lwip/ip_addr.h&gt;</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span> </div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span><span class="preprocessor">#include &quot;<a class="code" href="coap__io_8h.html">coap_io.h</a>&quot;</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span><span class="preprocessor">#include &quot;<a class="code" href="coap__dtls_8h.html">coap_dtls.h</a>&quot;</span></div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno">   27</span><span class="preprocessor">#include &quot;<a class="code" href="coap__event_8h.html">coap_event.h</a>&quot;</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span><span class="preprocessor">#include &quot;<a class="code" href="coap__time_8h.html">coap_time.h</a>&quot;</span></div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span><span class="preprocessor">#include &quot;<a class="code" href="option_8h.html">option.h</a>&quot;</span></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno">   30</span><span class="preprocessor">#include &quot;<a class="code" href="pdu_8h.html">pdu.h</a>&quot;</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno">   31</span><span class="preprocessor">#include &quot;<a class="code" href="prng_8h.html">prng.h</a>&quot;</span></div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno">   32</span><span class="preprocessor">#include &quot;<a class="code" href="coap__session_8h.html">coap_session.h</a>&quot;</span></div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno">   33</span> </div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno">   34</span><span class="keyword">struct </span><a class="code hl_struct" href="structcoap__queue__t.html">coap_queue_t</a>;</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno">   35</span> </div>
<div class="foldopen" id="foldopen00039" data-start="{" data-end="};">
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="structcoap__queue__t.html">   39</a></span><span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code hl_struct" href="structcoap__queue__t.html">coap_queue_t</a> {</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"><a class="line" href="structcoap__queue__t.html#a75428f649543d0779fce28c8538247d6">   40</a></span>  <span class="keyword">struct </span><a class="code hl_struct" href="structcoap__queue__t.html">coap_queue_t</a> *<a class="code hl_variable" href="structcoap__queue__t.html#a75428f649543d0779fce28c8538247d6">next</a>;</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"><a class="line" href="structcoap__queue__t.html#ab5edd7b3b3ddd98d8356febbd4726e7c">   41</a></span>  <a class="code hl_typedef" href="group__clock.html#ga97ff1502e211b4ee6c3f15a598833438">coap_tick_t</a> <a class="code hl_variable" href="structcoap__queue__t.html#ab5edd7b3b3ddd98d8356febbd4726e7c">t</a>;                </div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"><a class="line" href="structcoap__queue__t.html#aff24f5a43b3d2182535bc7bd2b5f5341">   42</a></span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code hl_variable" href="structcoap__queue__t.html#aff24f5a43b3d2182535bc7bd2b5f5341">retransmit_cnt</a>; </div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"><a class="line" href="structcoap__queue__t.html#a4d8b47a02fea39b9a9fc0501f81cbaa2">   44</a></span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code hl_variable" href="structcoap__queue__t.html#a4d8b47a02fea39b9a9fc0501f81cbaa2">timeout</a>;         </div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"><a class="line" href="structcoap__queue__t.html#a20ff974763849b7aeaca2cbf6f4b8f70">   45</a></span>  <a class="code hl_struct" href="structcoap__session__t.html">coap_session_t</a> *<a class="code hl_variable" href="structcoap__queue__t.html#a20ff974763849b7aeaca2cbf6f4b8f70">session</a>;      </div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"><a class="line" href="structcoap__queue__t.html#aeded9dd536f54ee47418575711e7dbac">   46</a></span>  <a class="code hl_typedef" href="pdu_8h.html#ac60fb9284ace878df3db4a2d621d9a8d">coap_tid_t</a> <a class="code hl_variable" href="structcoap__queue__t.html#aeded9dd536f54ee47418575711e7dbac">id</a>;                </div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"><a class="line" href="structcoap__queue__t.html#a2bc9a6e3ed0442653e53b92f5fa92954">   47</a></span>  <a class="code hl_struct" href="structcoap__pdu__t.html">coap_pdu_t</a> *<a class="code hl_variable" href="structcoap__queue__t.html#a2bc9a6e3ed0442653e53b92f5fa92954">pdu</a>;              </div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"><a class="line" href="net_8h.html#a548dc6ec3268d22d2a314fa132f548c1">   48</a></span>} <a class="code hl_struct" href="structcoap__queue__t.html">coap_queue_t</a>;</div>
</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span> </div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno">   58</span><span class="keywordtype">int</span> <a class="code hl_function" href="net_8h.html#a80d2c3b0141e98bf3f7914e7e59b9530">coap_insert_node</a>(<a class="code hl_struct" href="structcoap__queue__t.html">coap_queue_t</a> **queue, <a class="code hl_struct" href="structcoap__queue__t.html">coap_queue_t</a> *node);</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno">   59</span> </div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno">   67</span><span class="keywordtype">int</span> <a class="code hl_function" href="net_8h.html#a44c39a2314035989d3e07b9d9328e08c">coap_delete_node</a>(<a class="code hl_struct" href="structcoap__queue__t.html">coap_queue_t</a> *node);</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno">   68</span> </div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno">   74</span><span class="keywordtype">void</span> <a class="code hl_function" href="net_8h.html#a2c1e86998c712346baf2d116dbf1ac7f">coap_delete_all</a>(<a class="code hl_struct" href="structcoap__queue__t.html">coap_queue_t</a> *queue);</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno">   75</span> </div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno">   81</span><a class="code hl_struct" href="structcoap__queue__t.html">coap_queue_t</a> *<a class="code hl_function" href="net_8h.html#adbf4c617bdb13f0b61f83dca2ecdcc9e">coap_new_node</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno">   82</span> </div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno">   83</span><span class="keyword">struct </span><a class="code hl_struct" href="structcoap__resource__t.html">coap_resource_t</a>;</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno">   84</span><span class="keyword">struct </span><a class="code hl_struct" href="structcoap__context__t.html">coap_context_t</a>;</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno">   85</span><span class="preprocessor">#ifndef WITHOUT_ASYNC</span></div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno">   86</span><span class="keyword">struct </span><a class="code hl_struct" href="structcoap__async__state__t.html">coap_async_state_t</a>;</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno">   87</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno">   88</span> </div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"><a class="line" href="net_8h.html#ae74b51652af6ed6620d101dc9a8a2431">   98</a></span><span class="keyword">typedef</span> void (*<a class="code hl_typedef" href="net_8h.html#ae74b51652af6ed6620d101dc9a8a2431">coap_response_handler_t</a>)(<span class="keyword">struct </span><a class="code hl_struct" href="structcoap__context__t.html">coap_context_t</a> *context,</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno">   99</span>                                        <a class="code hl_struct" href="structcoap__session__t.html">coap_session_t</a> *session,</div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno">  100</span>                                        <a class="code hl_struct" href="structcoap__pdu__t.html">coap_pdu_t</a> *sent,</div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno">  101</span>                                        <a class="code hl_struct" href="structcoap__pdu__t.html">coap_pdu_t</a> *received,</div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno">  102</span>                                        <span class="keyword">const</span> <a class="code hl_typedef" href="pdu_8h.html#ac60fb9284ace878df3db4a2d621d9a8d">coap_tid_t</a> id);</div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno">  103</span> </div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"><a class="line" href="net_8h.html#a4f398929eef5944941ec6aa790f3abea">  113</a></span><span class="keyword">typedef</span> void (*<a class="code hl_typedef" href="net_8h.html#a4f398929eef5944941ec6aa790f3abea">coap_nack_handler_t</a>)(<span class="keyword">struct </span><a class="code hl_struct" href="structcoap__context__t.html">coap_context_t</a> *context,</div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno">  114</span>                                    <a class="code hl_struct" href="structcoap__session__t.html">coap_session_t</a> *session,</div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno">  115</span>                                    <a class="code hl_struct" href="structcoap__pdu__t.html">coap_pdu_t</a> *sent,</div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno">  116</span>                                    <a class="code hl_enumeration" href="coap__io_8h.html#a7ff2bb32137ca684be5539c156bdc418">coap_nack_reason_t</a> reason,</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno">  117</span>                                    <span class="keyword">const</span> <a class="code hl_typedef" href="pdu_8h.html#ac60fb9284ace878df3db4a2d621d9a8d">coap_tid_t</a> id);</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno">  118</span> </div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"><a class="line" href="net_8h.html#a4441ca51ddb6294729bd5f6971769d5f">  127</a></span><span class="keyword">typedef</span> void (*<a class="code hl_typedef" href="net_8h.html#a4441ca51ddb6294729bd5f6971769d5f">coap_ping_handler_t</a>)(<span class="keyword">struct </span><a class="code hl_struct" href="structcoap__context__t.html">coap_context_t</a> *context,</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno">  128</span>                                    <a class="code hl_struct" href="structcoap__session__t.html">coap_session_t</a> *session,</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno">  129</span>                                    <a class="code hl_struct" href="structcoap__pdu__t.html">coap_pdu_t</a> *received,</div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno">  130</span>                                    <span class="keyword">const</span> <a class="code hl_typedef" href="pdu_8h.html#ac60fb9284ace878df3db4a2d621d9a8d">coap_tid_t</a> id);</div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno">  131</span> </div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"><a class="line" href="net_8h.html#a89aa2bb8a2345d32463a27fa5a4a5acc">  140</a></span><span class="keyword">typedef</span> void (*<a class="code hl_typedef" href="net_8h.html#a89aa2bb8a2345d32463a27fa5a4a5acc">coap_pong_handler_t</a>)(<span class="keyword">struct </span><a class="code hl_struct" href="structcoap__context__t.html">coap_context_t</a> *context,</div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno">  141</span>                                    <a class="code hl_struct" href="structcoap__session__t.html">coap_session_t</a> *session,</div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno">  142</span>                                    <a class="code hl_struct" href="structcoap__pdu__t.html">coap_pdu_t</a> *received,</div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno">  143</span>                                    <span class="keyword">const</span> <a class="code hl_typedef" href="pdu_8h.html#ac60fb9284ace878df3db4a2d621d9a8d">coap_tid_t</a> id);</div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno">  144</span> </div>
<div class="foldopen" id="foldopen00148" data-start="{" data-end="};">
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"><a class="line" href="structcoap__context__t.html">  148</a></span><span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code hl_struct" href="structcoap__context__t.html">coap_context_t</a> {</div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"><a class="line" href="structcoap__context__t.html#a907e852e962a4ecafc3706c6b0d2e2d2">  149</a></span>  <a class="code hl_typedef" href="group__opt__filter.html#ga001c5b06ae9e02996509516871cb69a8">coap_opt_filter_t</a> <a class="code hl_variable" href="structcoap__context__t.html#a907e852e962a4ecafc3706c6b0d2e2d2">known_options</a>;</div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"><a class="line" href="structcoap__context__t.html#aaf441070f9b1f2aea225fc61b60a6bb8">  150</a></span>  <span class="keyword">struct </span><a class="code hl_struct" href="structcoap__resource__t.html">coap_resource_t</a> *<a class="code hl_variable" href="structcoap__context__t.html#aaf441070f9b1f2aea225fc61b60a6bb8">resources</a>; </div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"><a class="line" href="structcoap__context__t.html#a3a85c3d3e14611f74907b47b20a83b6e">  152</a></span>  <span class="keyword">struct </span><a class="code hl_struct" href="structcoap__resource__t.html">coap_resource_t</a> *<a class="code hl_variable" href="structcoap__context__t.html#a3a85c3d3e14611f74907b47b20a83b6e">unknown_resource</a>; </div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno">  155</span><span class="preprocessor">#ifndef WITHOUT_ASYNC</span></div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"><a class="line" href="structcoap__context__t.html#a4f287951eac36a9488fd9524eb1cbdb8">  158</a></span>  <span class="keyword">struct </span><a class="code hl_struct" href="structcoap__async__state__t.html">coap_async_state_t</a> *<a class="code hl_variable" href="structcoap__context__t.html#a4f287951eac36a9488fd9524eb1cbdb8">async_state</a>;</div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno">  159</span><span class="preprocessor">#endif </span><span class="comment">/* WITHOUT_ASYNC */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno">  160</span> </div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"><a class="line" href="structcoap__context__t.html#a080dc026c9eec48849d0140b433e04bb">  164</a></span>  <a class="code hl_typedef" href="group__clock.html#ga97ff1502e211b4ee6c3f15a598833438">coap_tick_t</a> <a class="code hl_variable" href="structcoap__context__t.html#a080dc026c9eec48849d0140b433e04bb">sendqueue_basetime</a>;</div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"><a class="line" href="structcoap__context__t.html#aa1e842d6431edb653dcfb117c237657f">  165</a></span>  <a class="code hl_struct" href="structcoap__queue__t.html">coap_queue_t</a> *<a class="code hl_variable" href="structcoap__context__t.html#aa1e842d6431edb653dcfb117c237657f">sendqueue</a>;</div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"><a class="line" href="structcoap__context__t.html#ab7d5935f4a3e1c94fa6bb12bf6400006">  166</a></span>  <a class="code hl_struct" href="structcoap__endpoint__t.html">coap_endpoint_t</a> *<a class="code hl_variable" href="structcoap__context__t.html#ab7d5935f4a3e1c94fa6bb12bf6400006">endpoint</a>;      </div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"><a class="line" href="structcoap__context__t.html#a5984a41d68fae2a68703f6afd940671f">  167</a></span>  <a class="code hl_struct" href="structcoap__session__t.html">coap_session_t</a> *<a class="code hl_variable" href="structcoap__context__t.html#a5984a41d68fae2a68703f6afd940671f">sessions</a>;       </div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno">  169</span><span class="preprocessor">#ifdef WITH_CONTIKI</span></div>
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno">  170</span>  <span class="keyword">struct </span>uip_udp_conn *conn;      </div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno">  171</span>  <span class="keyword">struct </span>etimer retransmit_timer; </div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno">  172</span>  <span class="keyword">struct </span>etimer notify_timer;     </div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno">  173</span><span class="preprocessor">#endif </span><span class="comment">/* WITH_CONTIKI */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno">  174</span> </div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno">  175</span><span class="preprocessor">#ifdef WITH_LWIP</span></div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno">  176</span>  <a class="code hl_typedef" href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> timer_configured;       </div>
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno">  179</span><span class="preprocessor">#endif </span><span class="comment">/* WITH_LWIP */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno">  180</span> </div>
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"><a class="line" href="structcoap__context__t.html#aa6aba2771228fc473f42ed37c73948e4">  186</a></span>  uint16_t <a class="code hl_variable" href="structcoap__context__t.html#aa6aba2771228fc473f42ed37c73948e4">message_id</a>;</div>
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno">  187</span> </div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"><a class="line" href="structcoap__context__t.html#aaeae5156b5641ce3a0bb6d13f5c226d2">  188</a></span>  <a class="code hl_typedef" href="net_8h.html#ae74b51652af6ed6620d101dc9a8a2431">coap_response_handler_t</a> <a class="code hl_variable" href="structcoap__context__t.html#aaeae5156b5641ce3a0bb6d13f5c226d2">response_handler</a>;</div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"><a class="line" href="structcoap__context__t.html#a610b7410b2c13c8908590d671243f125">  189</a></span>  <a class="code hl_typedef" href="net_8h.html#a4f398929eef5944941ec6aa790f3abea">coap_nack_handler_t</a> <a class="code hl_variable" href="structcoap__context__t.html#a610b7410b2c13c8908590d671243f125">nack_handler</a>;</div>
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"><a class="line" href="structcoap__context__t.html#a92b6634824600447d806e34e9cf58f9e">  190</a></span>  <a class="code hl_typedef" href="net_8h.html#a4441ca51ddb6294729bd5f6971769d5f">coap_ping_handler_t</a> <a class="code hl_variable" href="structcoap__context__t.html#a92b6634824600447d806e34e9cf58f9e">ping_handler</a>;</div>
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"><a class="line" href="structcoap__context__t.html#a094b3eaad04393ebf8527f6f6b58112e">  191</a></span>  <a class="code hl_typedef" href="net_8h.html#a89aa2bb8a2345d32463a27fa5a4a5acc">coap_pong_handler_t</a> <a class="code hl_variable" href="structcoap__context__t.html#a094b3eaad04393ebf8527f6f6b58112e">pong_handler</a>;</div>
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno">  192</span> </div>
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno"><a class="line" href="structcoap__context__t.html#acaa625e1c87b88a1dc48bd0d895185d9">  197</a></span>  <a class="code hl_typedef" href="group__events.html#ga47e52d9f286d209a75c5e2ce34af67ac">coap_event_handler_t</a> <a class="code hl_variable" href="structcoap__context__t.html#acaa625e1c87b88a1dc48bd0d895185d9">handle_event</a>;</div>
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno">  198</span> </div>
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno"><a class="line" href="structcoap__context__t.html#a75eedd9da9c35fbbffce222fac0d6f1a">  199</a></span>  ssize_t (*<a class="code hl_variable" href="structcoap__context__t.html#a75eedd9da9c35fbbffce222fac0d6f1a">network_send</a>)(<a class="code hl_struct" href="structcoap__socket__t.html">coap_socket_t</a> *sock, <span class="keyword">const</span> <a class="code hl_struct" href="structcoap__session__t.html">coap_session_t</a> *session, <span class="keyword">const</span> <a class="code hl_typedef" href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *data, <span class="keywordtype">size_t</span> datalen);</div>
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno">  200</span> </div>
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno"><a class="line" href="structcoap__context__t.html#a1ad04b95f7ee48fa3575f142a81c3b99">  201</a></span>  ssize_t (*<a class="code hl_variable" href="structcoap__context__t.html#a1ad04b95f7ee48fa3575f142a81c3b99">network_read</a>)(<a class="code hl_struct" href="structcoap__socket__t.html">coap_socket_t</a> *sock, <span class="keyword">struct </span><a class="code hl_struct" href="structcoap__packet__t.html">coap_packet_t</a> *packet);</div>
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno">  202</span> </div>
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno"><a class="line" href="structcoap__context__t.html#ae412c9932b9ced3c778d6029d21493c7">  203</a></span>  size_t(*<a class="code hl_variable" href="structcoap__context__t.html#ae412c9932b9ced3c778d6029d21493c7">get_client_psk</a>)(<span class="keyword">const</span> <a class="code hl_struct" href="structcoap__session__t.html">coap_session_t</a> *session, <span class="keyword">const</span> <a class="code hl_typedef" href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *hint, <span class="keywordtype">size_t</span> hint_len, <a class="code hl_typedef" href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *identity, <span class="keywordtype">size_t</span> *identity_len, <span class="keywordtype">size_t</span> max_identity_len, <a class="code hl_typedef" href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *psk, <span class="keywordtype">size_t</span> max_psk_len);</div>
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno"><a class="line" href="structcoap__context__t.html#a71aa494865b061f72ec0ecd633aa4e7f">  204</a></span>  size_t(*<a class="code hl_variable" href="structcoap__context__t.html#a71aa494865b061f72ec0ecd633aa4e7f">get_server_psk</a>)(<span class="keyword">const</span> <a class="code hl_struct" href="structcoap__session__t.html">coap_session_t</a> *session, <span class="keyword">const</span> <a class="code hl_typedef" href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *identity, <span class="keywordtype">size_t</span> identity_len, <a class="code hl_typedef" href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *psk, <span class="keywordtype">size_t</span> max_psk_len);</div>
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno"><a class="line" href="structcoap__context__t.html#aca05833745124e6987489c8ecfebcb63">  205</a></span>  size_t(*<a class="code hl_variable" href="structcoap__context__t.html#aca05833745124e6987489c8ecfebcb63">get_server_hint</a>)(<span class="keyword">const</span> <a class="code hl_struct" href="structcoap__session__t.html">coap_session_t</a> *session, <a class="code hl_typedef" href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *hint, <span class="keywordtype">size_t</span> max_hint_len);</div>
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno">  206</span> </div>
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno"><a class="line" href="structcoap__context__t.html#a85e2737b90beb8afce13a6ef2bea87f4">  207</a></span>  <span class="keywordtype">void</span> *<a class="code hl_variable" href="structcoap__context__t.html#a85e2737b90beb8afce13a6ef2bea87f4">dtls_context</a>;</div>
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno"><a class="line" href="structcoap__context__t.html#ad724d5cbe61f367fc10162668c31c0a8">  208</a></span>  <a class="code hl_typedef" href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *<a class="code hl_variable" href="structcoap__context__t.html#ad724d5cbe61f367fc10162668c31c0a8">psk_hint</a>;</div>
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno"><a class="line" href="structcoap__context__t.html#a0f715479db8671158a800ac14ef3ada3">  209</a></span>  <span class="keywordtype">size_t</span> <a class="code hl_variable" href="structcoap__context__t.html#a0f715479db8671158a800ac14ef3ada3">psk_hint_len</a>;</div>
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno"><a class="line" href="structcoap__context__t.html#ab12d8e6ea4ec3ec2f196bd088d280f81">  210</a></span>  <a class="code hl_typedef" href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *<a class="code hl_variable" href="structcoap__context__t.html#ab12d8e6ea4ec3ec2f196bd088d280f81">psk_key</a>;</div>
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno"><a class="line" href="structcoap__context__t.html#af2e8cc51d43707399bf19226afca7cd4">  211</a></span>  <span class="keywordtype">size_t</span> <a class="code hl_variable" href="structcoap__context__t.html#af2e8cc51d43707399bf19226afca7cd4">psk_key_len</a>;</div>
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno">  212</span> </div>
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno"><a class="line" href="structcoap__context__t.html#ad7763d29c588f1b11b4c75820999066f">  213</a></span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code hl_variable" href="structcoap__context__t.html#ad7763d29c588f1b11b4c75820999066f">session_timeout</a>;    </div>
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno"><a class="line" href="structcoap__context__t.html#aff37d887e0a881a33f6e99f9a75d36b2">  214</a></span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code hl_variable" href="structcoap__context__t.html#aff37d887e0a881a33f6e99f9a75d36b2">max_idle_sessions</a>;  </div>
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno"><a class="line" href="structcoap__context__t.html#aa07fd7e9c4a2ddc0a4d9b5149a885caf">  215</a></span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code hl_variable" href="structcoap__context__t.html#aa07fd7e9c4a2ddc0a4d9b5149a885caf">max_handshake_sessions</a>; </div>
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno"><a class="line" href="structcoap__context__t.html#a653c88c399ffa1dc3661ffdb9daabc2a">  216</a></span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code hl_variable" href="structcoap__context__t.html#a653c88c399ffa1dc3661ffdb9daabc2a">ping_timeout</a>;           </div>
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno"><a class="line" href="structcoap__context__t.html#a2dafa5220ce428f5788c5d08adde4838">  217</a></span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code hl_variable" href="structcoap__context__t.html#a2dafa5220ce428f5788c5d08adde4838">csm_timeout</a>;           </div>
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno"><a class="line" href="structcoap__context__t.html#a2e8ee7fcc1a46e74ea80484a7025a9c3">  219</a></span>  <span class="keywordtype">void</span> *<a class="code hl_variable" href="structcoap__context__t.html#a2e8ee7fcc1a46e74ea80484a7025a9c3">app</a>;                       </div>
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno"><a class="line" href="net_8h.html#ac7a23545549ba965bdcc52ebf53b102f">  220</a></span>} <a class="code hl_struct" href="structcoap__context__t.html">coap_context_t</a>;</div>
</div>
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno">  221</span> </div>
<div class="line"><a id="l00229" name="l00229"></a><span class="lineno">  229</span><a class="code hl_define" href="libcoap_8h.html#a58b4446dccd0b8c21b3532ef6b77a57d">COAP_STATIC_INLINE</a> <span class="keywordtype">void</span></div>
<div class="foldopen" id="foldopen00230" data-start="{" data-end="}">
<div class="line"><a id="l00230" name="l00230"></a><span class="lineno"><a class="line" href="net_8h.html#a7cba9a2fabbd31cb622b828d2415a12c">  230</a></span><a class="code hl_function" href="net_8h.html#a7cba9a2fabbd31cb622b828d2415a12c">coap_register_response_handler</a>(<a class="code hl_struct" href="structcoap__context__t.html">coap_context_t</a> *context,</div>
<div class="line"><a id="l00231" name="l00231"></a><span class="lineno">  231</span>                               <a class="code hl_typedef" href="net_8h.html#ae74b51652af6ed6620d101dc9a8a2431">coap_response_handler_t</a> handler) {</div>
<div class="line"><a id="l00232" name="l00232"></a><span class="lineno">  232</span>  context-&gt;<a class="code hl_variable" href="structcoap__context__t.html#aaeae5156b5641ce3a0bb6d13f5c226d2">response_handler</a> = handler;</div>
<div class="line"><a id="l00233" name="l00233"></a><span class="lineno">  233</span>}</div>
</div>
<div class="line"><a id="l00234" name="l00234"></a><span class="lineno">  234</span> </div>
<div class="line"><a id="l00244" name="l00244"></a><span class="lineno">  244</span><a class="code hl_define" href="libcoap_8h.html#a58b4446dccd0b8c21b3532ef6b77a57d">COAP_STATIC_INLINE</a> <span class="keywordtype">void</span></div>
<div class="foldopen" id="foldopen00245" data-start="{" data-end="}">
<div class="line"><a id="l00245" name="l00245"></a><span class="lineno"><a class="line" href="net_8h.html#ae150823383d9c96c22076e37de9a8192">  245</a></span><a class="code hl_function" href="net_8h.html#ae150823383d9c96c22076e37de9a8192">coap_register_nack_handler</a>(<a class="code hl_struct" href="structcoap__context__t.html">coap_context_t</a> *context,</div>
<div class="line"><a id="l00246" name="l00246"></a><span class="lineno">  246</span>                           <a class="code hl_typedef" href="net_8h.html#a4f398929eef5944941ec6aa790f3abea">coap_nack_handler_t</a> handler) {</div>
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno">  247</span>  context-&gt;<a class="code hl_variable" href="structcoap__context__t.html#a610b7410b2c13c8908590d671243f125">nack_handler</a> = handler;</div>
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno">  248</span>}</div>
</div>
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno">  249</span> </div>
<div class="line"><a id="l00257" name="l00257"></a><span class="lineno">  257</span><a class="code hl_define" href="libcoap_8h.html#a58b4446dccd0b8c21b3532ef6b77a57d">COAP_STATIC_INLINE</a> <span class="keywordtype">void</span></div>
<div class="foldopen" id="foldopen00258" data-start="{" data-end="}">
<div class="line"><a id="l00258" name="l00258"></a><span class="lineno"><a class="line" href="net_8h.html#a0271cb8bba386ce230dd30496bbc8670">  258</a></span><a class="code hl_function" href="net_8h.html#a0271cb8bba386ce230dd30496bbc8670">coap_register_ping_handler</a>(<a class="code hl_struct" href="structcoap__context__t.html">coap_context_t</a> *context,</div>
<div class="line"><a id="l00259" name="l00259"></a><span class="lineno">  259</span>                           <a class="code hl_typedef" href="net_8h.html#a4441ca51ddb6294729bd5f6971769d5f">coap_ping_handler_t</a> handler) {</div>
<div class="line"><a id="l00260" name="l00260"></a><span class="lineno">  260</span>  context-&gt;<a class="code hl_variable" href="structcoap__context__t.html#a92b6634824600447d806e34e9cf58f9e">ping_handler</a> = handler;</div>
<div class="line"><a id="l00261" name="l00261"></a><span class="lineno">  261</span>}</div>
</div>
<div class="line"><a id="l00262" name="l00262"></a><span class="lineno">  262</span> </div>
<div class="line"><a id="l00270" name="l00270"></a><span class="lineno">  270</span><a class="code hl_define" href="libcoap_8h.html#a58b4446dccd0b8c21b3532ef6b77a57d">COAP_STATIC_INLINE</a> <span class="keywordtype">void</span></div>
<div class="foldopen" id="foldopen00271" data-start="{" data-end="}">
<div class="line"><a id="l00271" name="l00271"></a><span class="lineno"><a class="line" href="net_8h.html#a4af0d2a6075413637f8099fc9c59896b">  271</a></span><a class="code hl_function" href="net_8h.html#a4af0d2a6075413637f8099fc9c59896b">coap_register_pong_handler</a>(<a class="code hl_struct" href="structcoap__context__t.html">coap_context_t</a> *context,</div>
<div class="line"><a id="l00272" name="l00272"></a><span class="lineno">  272</span>                           <a class="code hl_typedef" href="net_8h.html#a89aa2bb8a2345d32463a27fa5a4a5acc">coap_pong_handler_t</a> handler) {</div>
<div class="line"><a id="l00273" name="l00273"></a><span class="lineno">  273</span>  context-&gt;<a class="code hl_variable" href="structcoap__context__t.html#a094b3eaad04393ebf8527f6f6b58112e">pong_handler</a> = handler;</div>
<div class="line"><a id="l00274" name="l00274"></a><span class="lineno">  274</span>}</div>
</div>
<div class="line"><a id="l00275" name="l00275"></a><span class="lineno">  275</span> </div>
<div class="line"><a id="l00282" name="l00282"></a><span class="lineno">  282</span><a class="code hl_define" href="libcoap_8h.html#a58b4446dccd0b8c21b3532ef6b77a57d">COAP_STATIC_INLINE</a> <span class="keywordtype">void</span></div>
<div class="foldopen" id="foldopen00283" data-start="{" data-end="}">
<div class="line"><a id="l00283" name="l00283"></a><span class="lineno"><a class="line" href="net_8h.html#a696acd1012ad1c2dba081ee5bea54fd8">  283</a></span><a class="code hl_function" href="net_8h.html#a696acd1012ad1c2dba081ee5bea54fd8">coap_register_option</a>(<a class="code hl_struct" href="structcoap__context__t.html">coap_context_t</a> *ctx, uint16_t type) {</div>
<div class="line"><a id="l00284" name="l00284"></a><span class="lineno">  284</span>  <a class="code hl_function" href="group__opt__filter.html#ga6b9ade4855f4440b3311296c03bc12aa">coap_option_setb</a>(ctx-&gt;<a class="code hl_variable" href="structcoap__context__t.html#a907e852e962a4ecafc3706c6b0d2e2d2">known_options</a>, type);</div>
<div class="line"><a id="l00285" name="l00285"></a><span class="lineno">  285</span>}</div>
</div>
<div class="line"><a id="l00286" name="l00286"></a><span class="lineno">  286</span> </div>
<div class="line"><a id="l00292" name="l00292"></a><span class="lineno">  292</span><span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code hl_function" href="net_8h.html#a116b4fec1683a94831f02b3e1a54dcac">coap_adjust_basetime</a>(<a class="code hl_struct" href="structcoap__context__t.html">coap_context_t</a> *ctx, <a class="code hl_typedef" href="group__clock.html#ga97ff1502e211b4ee6c3f15a598833438">coap_tick_t</a> now);</div>
<div class="line"><a id="l00293" name="l00293"></a><span class="lineno">  293</span> </div>
<div class="line"><a id="l00297" name="l00297"></a><span class="lineno">  297</span><a class="code hl_struct" href="structcoap__queue__t.html">coap_queue_t</a> *<a class="code hl_function" href="net_8h.html#a4a9f7d31eafd7d82776f9b1a9291eea0">coap_peek_next</a>( <a class="code hl_struct" href="structcoap__context__t.html">coap_context_t</a> *context );</div>
<div class="line"><a id="l00298" name="l00298"></a><span class="lineno">  298</span> </div>
<div class="line"><a id="l00302" name="l00302"></a><span class="lineno">  302</span><a class="code hl_struct" href="structcoap__queue__t.html">coap_queue_t</a> *<a class="code hl_function" href="net_8h.html#a740acba1e579ecec3c67eca3b7522164">coap_pop_next</a>( <a class="code hl_struct" href="structcoap__context__t.html">coap_context_t</a> *context );</div>
<div class="line"><a id="l00303" name="l00303"></a><span class="lineno">  303</span> </div>
<div class="line"><a id="l00307" name="l00307"></a><span class="lineno">  307</span><a class="code hl_struct" href="structcoap__context__t.html">coap_context_t</a> *<a class="code hl_function" href="net_8h.html#a1ab369ca0a3c4fe7f8a9e0536346ff71">coap_new_context</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structcoap__address__t.html">coap_address_t</a> *listen_addr);</div>
<div class="line"><a id="l00308" name="l00308"></a><span class="lineno">  308</span> </div>
<div class="line"><a id="l00321" name="l00321"></a><span class="lineno">  321</span><span class="keywordtype">int</span> <a class="code hl_function" href="net_8h.html#a665601c3c9ac88ef92125c1e62d679b2">coap_context_set_psk</a>( <a class="code hl_struct" href="structcoap__context__t.html">coap_context_t</a> *context, <span class="keyword">const</span> <span class="keywordtype">char</span> *hint,</div>
<div class="line"><a id="l00322" name="l00322"></a><span class="lineno">  322</span>                           <span class="keyword">const</span> <a class="code hl_typedef" href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *key, <span class="keywordtype">size_t</span> key_len );</div>
<div class="line"><a id="l00323" name="l00323"></a><span class="lineno">  323</span> </div>
<div class="line"><a id="l00333" name="l00333"></a><span class="lineno">  333</span><span class="keywordtype">int</span></div>
<div class="line"><a id="l00334" name="l00334"></a><span class="lineno">  334</span><a class="code hl_function" href="net_8h.html#a35b413b8771487a5384cfe670553276a">coap_context_set_pki</a>(<a class="code hl_struct" href="structcoap__context__t.html">coap_context_t</a> *context,</div>
<div class="line"><a id="l00335" name="l00335"></a><span class="lineno">  335</span>                     <a class="code hl_struct" href="structcoap__dtls__pki__t.html">coap_dtls_pki_t</a> *setup_data);</div>
<div class="line"><a id="l00336" name="l00336"></a><span class="lineno">  336</span> </div>
<div class="line"><a id="l00348" name="l00348"></a><span class="lineno">  348</span><span class="keywordtype">int</span></div>
<div class="line"><a id="l00349" name="l00349"></a><span class="lineno">  349</span><a class="code hl_function" href="net_8h.html#a7b56f148fda46ca44655e1a9b373b97e">coap_context_set_pki_root_cas</a>(<a class="code hl_struct" href="structcoap__context__t.html">coap_context_t</a> *context,</div>
<div class="line"><a id="l00350" name="l00350"></a><span class="lineno">  350</span>                              <span class="keyword">const</span> <span class="keywordtype">char</span> *ca_file,</div>
<div class="line"><a id="l00351" name="l00351"></a><span class="lineno">  351</span>                              <span class="keyword">const</span> <span class="keywordtype">char</span> *ca_dir);</div>
<div class="line"><a id="l00352" name="l00352"></a><span class="lineno">  352</span> </div>
<div class="line"><a id="l00367" name="l00367"></a><span class="lineno">  367</span><span class="keywordtype">void</span> <a class="code hl_function" href="net_8h.html#acc875c3095491f3835f4d252bd72999d">coap_context_set_keepalive</a>(<a class="code hl_struct" href="structcoap__context__t.html">coap_context_t</a> *context, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> seconds);</div>
<div class="line"><a id="l00368" name="l00368"></a><span class="lineno">  368</span> </div>
<div class="line"><a id="l00378" name="l00378"></a><span class="lineno">  378</span><a class="code hl_define" href="libcoap_8h.html#a58b4446dccd0b8c21b3532ef6b77a57d">COAP_STATIC_INLINE</a> uint16_t</div>
<div class="foldopen" id="foldopen00379" data-start="{" data-end="}">
<div class="line"><a id="l00379" name="l00379"></a><span class="lineno"><a class="line" href="net_8h.html#ade36148140b152d713b23d17bbcf0024">  379</a></span><a class="code hl_function" href="net_8h.html#ade36148140b152d713b23d17bbcf0024">coap_new_message_id</a>(<a class="code hl_struct" href="structcoap__session__t.html">coap_session_t</a> *session) {</div>
<div class="line"><a id="l00380" name="l00380"></a><span class="lineno">  380</span>  <span class="keywordflow">return</span> ++session-&gt;<a class="code hl_variable" href="structcoap__session__t.html#a66b26cc53491f7a550ed7e7d93b0b145">tx_mid</a>;</div>
<div class="line"><a id="l00381" name="l00381"></a><span class="lineno">  381</span>}</div>
</div>
<div class="line"><a id="l00382" name="l00382"></a><span class="lineno">  382</span> </div>
<div class="line"><a id="l00391" name="l00391"></a><span class="lineno">  391</span><span class="keywordtype">void</span> <a class="code hl_function" href="net_8h.html#a4a0717822713783908dd33d300440b2e">coap_free_context</a>(<a class="code hl_struct" href="structcoap__context__t.html">coap_context_t</a> *context);</div>
<div class="line"><a id="l00392" name="l00392"></a><span class="lineno">  392</span> </div>
<div class="line"><a id="l00402" name="l00402"></a><span class="lineno">  402</span><span class="keywordtype">void</span> <a class="code hl_function" href="net_8h.html#ace22e7d3745fb725552c929b4da55c61">coap_set_app_data</a>(<a class="code hl_struct" href="structcoap__context__t.html">coap_context_t</a> *context, <span class="keywordtype">void</span> *data);</div>
<div class="line"><a id="l00403" name="l00403"></a><span class="lineno">  403</span> </div>
<div class="line"><a id="l00413" name="l00413"></a><span class="lineno">  413</span><span class="keywordtype">void</span> *<a class="code hl_function" href="net_8h.html#aba2c62403587c8ee4e87adaffe9202da">coap_get_app_data</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structcoap__context__t.html">coap_context_t</a> *context);</div>
<div class="line"><a id="l00414" name="l00414"></a><span class="lineno">  414</span> </div>
<div class="line"><a id="l00432" name="l00432"></a><span class="lineno">  432</span><a class="code hl_struct" href="structcoap__pdu__t.html">coap_pdu_t</a> *<a class="code hl_function" href="net_8h.html#aa54bb684429ee455f119fc5fb1feb197">coap_new_error_response</a>(<a class="code hl_struct" href="structcoap__pdu__t.html">coap_pdu_t</a> *request,</div>
<div class="line"><a id="l00433" name="l00433"></a><span class="lineno">  433</span>                                    <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> code,</div>
<div class="line"><a id="l00434" name="l00434"></a><span class="lineno">  434</span>                                    <a class="code hl_typedef" href="group__opt__filter.html#ga001c5b06ae9e02996509516871cb69a8">coap_opt_filter_t</a> opts);</div>
<div class="line"><a id="l00435" name="l00435"></a><span class="lineno">  435</span> </div>
<div class="line"><a id="l00451" name="l00451"></a><span class="lineno">  451</span><a class="code hl_typedef" href="pdu_8h.html#ac60fb9284ace878df3db4a2d621d9a8d">coap_tid_t</a> <a class="code hl_function" href="net_8h.html#ab31cd76353f751ec4dc5c033152df575">coap_send_error</a>(<a class="code hl_struct" href="structcoap__session__t.html">coap_session_t</a> *session,</div>
<div class="line"><a id="l00452" name="l00452"></a><span class="lineno">  452</span>                           <a class="code hl_struct" href="structcoap__pdu__t.html">coap_pdu_t</a> *request,</div>
<div class="line"><a id="l00453" name="l00453"></a><span class="lineno">  453</span>                           <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> code,</div>
<div class="line"><a id="l00454" name="l00454"></a><span class="lineno">  454</span>                           <a class="code hl_typedef" href="group__opt__filter.html#ga001c5b06ae9e02996509516871cb69a8">coap_opt_filter_t</a> opts);</div>
<div class="line"><a id="l00455" name="l00455"></a><span class="lineno">  455</span> </div>
<div class="line"><a id="l00467" name="l00467"></a><span class="lineno">  467</span><a class="code hl_typedef" href="pdu_8h.html#ac60fb9284ace878df3db4a2d621d9a8d">coap_tid_t</a></div>
<div class="line"><a id="l00468" name="l00468"></a><span class="lineno">  468</span><a class="code hl_function" href="net_8h.html#a6aa830b46188549b51773f724eb8e752">coap_send_message_type</a>(<a class="code hl_struct" href="structcoap__session__t.html">coap_session_t</a> *session, <a class="code hl_struct" href="structcoap__pdu__t.html">coap_pdu_t</a> *request, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> type);</div>
<div class="line"><a id="l00469" name="l00469"></a><span class="lineno">  469</span> </div>
<div class="line"><a id="l00481" name="l00481"></a><span class="lineno">  481</span><a class="code hl_typedef" href="pdu_8h.html#ac60fb9284ace878df3db4a2d621d9a8d">coap_tid_t</a> <a class="code hl_function" href="net_8h.html#aba278b109415057d15196fa46afee970">coap_send_ack</a>(<a class="code hl_struct" href="structcoap__session__t.html">coap_session_t</a> *session, <a class="code hl_struct" href="structcoap__pdu__t.html">coap_pdu_t</a> *request);</div>
<div class="line"><a id="l00482" name="l00482"></a><span class="lineno">  482</span> </div>
<div class="line"><a id="l00494" name="l00494"></a><span class="lineno">  494</span><a class="code hl_define" href="libcoap_8h.html#a58b4446dccd0b8c21b3532ef6b77a57d">COAP_STATIC_INLINE</a> <a class="code hl_typedef" href="pdu_8h.html#ac60fb9284ace878df3db4a2d621d9a8d">coap_tid_t</a></div>
<div class="foldopen" id="foldopen00495" data-start="{" data-end="}">
<div class="line"><a id="l00495" name="l00495"></a><span class="lineno"><a class="line" href="net_8h.html#a5854b1394bfddd574e48af116e3aaaf9">  495</a></span><a class="code hl_function" href="net_8h.html#a5854b1394bfddd574e48af116e3aaaf9">coap_send_rst</a>(<a class="code hl_struct" href="structcoap__session__t.html">coap_session_t</a> *session, <a class="code hl_struct" href="structcoap__pdu__t.html">coap_pdu_t</a> *request) {</div>
<div class="line"><a id="l00496" name="l00496"></a><span class="lineno">  496</span>  <span class="keywordflow">return</span> <a class="code hl_function" href="net_8h.html#a6aa830b46188549b51773f724eb8e752">coap_send_message_type</a>(session, request, <a class="code hl_define" href="pdu_8h.html#a9ca373ecc6b3ea33fa62791ce3d58c9a">COAP_MESSAGE_RST</a>);</div>
<div class="line"><a id="l00497" name="l00497"></a><span class="lineno">  497</span>}</div>
</div>
<div class="line"><a id="l00498" name="l00498"></a><span class="lineno">  498</span> </div>
<div class="line"><a id="l00510" name="l00510"></a><span class="lineno">  510</span><a class="code hl_typedef" href="pdu_8h.html#ac60fb9284ace878df3db4a2d621d9a8d">coap_tid_t</a> <a class="code hl_function" href="net_8h.html#ab0b0b5db03427c4313c01ec2b12cf8ed">coap_send</a>( <a class="code hl_struct" href="structcoap__session__t.html">coap_session_t</a> *session, <a class="code hl_struct" href="structcoap__pdu__t.html">coap_pdu_t</a> *pdu );</div>
<div class="line"><a id="l00511" name="l00511"></a><span class="lineno">  511</span> </div>
<div class="line"><a id="l00521" name="l00521"></a><span class="lineno">  521</span><a class="code hl_typedef" href="pdu_8h.html#ac60fb9284ace878df3db4a2d621d9a8d">coap_tid_t</a> <a class="code hl_function" href="net_8h.html#a9900c032b74bd57f67d489484a2b3207">coap_retransmit</a>(<a class="code hl_struct" href="structcoap__context__t.html">coap_context_t</a> *context, <a class="code hl_struct" href="structcoap__queue__t.html">coap_queue_t</a> *node);</div>
<div class="line"><a id="l00522" name="l00522"></a><span class="lineno">  522</span> </div>
<div class="line"><a id="l00543" name="l00543"></a><span class="lineno">  543</span><span class="keywordtype">unsigned</span> <span class="keywordtype">int</span></div>
<div class="line"><a id="l00544" name="l00544"></a><span class="lineno">  544</span><a class="code hl_function" href="net_8h.html#aaac86ac50793f309678e4951ecf8863f">coap_write</a>(<a class="code hl_struct" href="structcoap__context__t.html">coap_context_t</a> *ctx,</div>
<div class="line"><a id="l00545" name="l00545"></a><span class="lineno">  545</span>  <a class="code hl_struct" href="structcoap__socket__t.html">coap_socket_t</a> *sockets[],</div>
<div class="line"><a id="l00546" name="l00546"></a><span class="lineno">  546</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> max_sockets,</div>
<div class="line"><a id="l00547" name="l00547"></a><span class="lineno">  547</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> *num_sockets,</div>
<div class="line"><a id="l00548" name="l00548"></a><span class="lineno">  548</span>  <a class="code hl_typedef" href="group__clock.html#ga97ff1502e211b4ee6c3f15a598833438">coap_tick_t</a> now</div>
<div class="line"><a id="l00549" name="l00549"></a><span class="lineno">  549</span>);</div>
<div class="line"><a id="l00550" name="l00550"></a><span class="lineno">  550</span> </div>
<div class="line"><a id="l00557" name="l00557"></a><span class="lineno">  557</span><span class="keywordtype">void</span> <a class="code hl_function" href="net_8h.html#a0748d791fd2af516dd93fbadb660d440">coap_read</a>(<a class="code hl_struct" href="structcoap__context__t.html">coap_context_t</a> *ctx, <a class="code hl_typedef" href="group__clock.html#ga97ff1502e211b4ee6c3f15a598833438">coap_tick_t</a> now);</div>
<div class="line"><a id="l00558" name="l00558"></a><span class="lineno">  558</span> </div>
<div class="line"><a id="l00568" name="l00568"></a><span class="lineno"><a class="line" href="net_8h.html#a909f47a00d77569908ca9f180afc87a3">  568</a></span><span class="keywordtype">int</span> <a class="code hl_function" href="net_8h.html#a909f47a00d77569908ca9f180afc87a3">coap_run_once</a>( <a class="code hl_struct" href="structcoap__context__t.html">coap_context_t</a> *ctx, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> timeout_ms );</div>
<div class="line"><a id="l00569" name="l00569"></a><span class="lineno">  569</span> </div>
<div class="line"><a id="l00583" name="l00583"></a><span class="lineno">  583</span><span class="keywordtype">int</span> <a class="code hl_function" href="net_8h.html#ae6b8ca457dd41f23372f9e9a7159312b">coap_handle_dgram</a>(<a class="code hl_struct" href="structcoap__context__t.html">coap_context_t</a> *ctx, <a class="code hl_struct" href="structcoap__session__t.html">coap_session_t</a> *session, <a class="code hl_typedef" href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *data, <span class="keywordtype">size_t</span> data_len);</div>
<div class="line"><a id="l00584" name="l00584"></a><span class="lineno">  584</span> </div>
<div class="line"><a id="l00595" name="l00595"></a><span class="lineno">  595</span><span class="keywordtype">int</span> <a class="code hl_function" href="net_8h.html#a5e2cee998ccf618ac07aa54f5e5f8743">coap_handle_event</a>(<a class="code hl_struct" href="structcoap__context__t.html">coap_context_t</a> *context,</div>
<div class="line"><a id="l00596" name="l00596"></a><span class="lineno">  596</span>                      <a class="code hl_typedef" href="group__events.html#ga75a08ceb9a855937288ac3996656c872">coap_event_t</a> event,</div>
<div class="line"><a id="l00597" name="l00597"></a><span class="lineno">  597</span>                      <a class="code hl_struct" href="structcoap__session__t.html">coap_session_t</a> *session);</div>
<div class="line"><a id="l00614" name="l00614"></a><span class="lineno">  614</span><span class="keywordtype">int</span> <a class="code hl_function" href="net_8h.html#a480a3e967feaf00778dedf4c2fc68bd2">coap_remove_from_queue</a>(<a class="code hl_struct" href="structcoap__queue__t.html">coap_queue_t</a> **queue,</div>
<div class="line"><a id="l00615" name="l00615"></a><span class="lineno">  615</span>                           <a class="code hl_struct" href="structcoap__session__t.html">coap_session_t</a> *session,</div>
<div class="line"><a id="l00616" name="l00616"></a><span class="lineno">  616</span>                           <a class="code hl_typedef" href="pdu_8h.html#ac60fb9284ace878df3db4a2d621d9a8d">coap_tid_t</a> <span class="keywordtype">id</span>,</div>
<div class="line"><a id="l00617" name="l00617"></a><span class="lineno">  617</span>                           <a class="code hl_struct" href="structcoap__queue__t.html">coap_queue_t</a> **node);</div>
<div class="line"><a id="l00618" name="l00618"></a><span class="lineno">  618</span> </div>
<div class="line"><a id="l00619" name="l00619"></a><span class="lineno">  619</span><a class="code hl_typedef" href="pdu_8h.html#ac60fb9284ace878df3db4a2d621d9a8d">coap_tid_t</a></div>
<div class="line"><a id="l00620" name="l00620"></a><span class="lineno">  620</span><a class="code hl_function" href="net_8h.html#a7bee391c13b539a24d9f74b2fc23e08a">coap_wait_ack</a>( <a class="code hl_struct" href="structcoap__context__t.html">coap_context_t</a> *context, <a class="code hl_struct" href="structcoap__session__t.html">coap_session_t</a> *session,</div>
<div class="line"><a id="l00621" name="l00621"></a><span class="lineno">  621</span>               <a class="code hl_struct" href="structcoap__queue__t.html">coap_queue_t</a> *node);</div>
<div class="line"><a id="l00622" name="l00622"></a><span class="lineno">  622</span> </div>
<div class="line"><a id="l00632" name="l00632"></a><span class="lineno">  632</span><a class="code hl_struct" href="structcoap__queue__t.html">coap_queue_t</a> *<a class="code hl_function" href="net_8h.html#a3065434dae5c177558462dddc61d5514">coap_find_transaction</a>(<a class="code hl_struct" href="structcoap__queue__t.html">coap_queue_t</a> *queue, <a class="code hl_struct" href="structcoap__session__t.html">coap_session_t</a> *session, <a class="code hl_typedef" href="pdu_8h.html#ac60fb9284ace878df3db4a2d621d9a8d">coap_tid_t</a> <span class="keywordtype">id</span>);</div>
<div class="line"><a id="l00633" name="l00633"></a><span class="lineno">  633</span> </div>
<div class="line"><a id="l00643" name="l00643"></a><span class="lineno">  643</span><span class="keywordtype">void</span> <a class="code hl_function" href="net_8h.html#ab0ffe6312ad95fb07b0212f912cf196c">coap_cancel_all_messages</a>(<a class="code hl_struct" href="structcoap__context__t.html">coap_context_t</a> *context,</div>
<div class="line"><a id="l00644" name="l00644"></a><span class="lineno">  644</span>                              <a class="code hl_struct" href="structcoap__session__t.html">coap_session_t</a> *session,</div>
<div class="line"><a id="l00645" name="l00645"></a><span class="lineno">  645</span>                              <span class="keyword">const</span> <a class="code hl_typedef" href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *token,</div>
<div class="line"><a id="l00646" name="l00646"></a><span class="lineno">  646</span>                              <span class="keywordtype">size_t</span> token_length);</div>
<div class="line"><a id="l00647" name="l00647"></a><span class="lineno">  647</span> </div>
<div class="line"><a id="l00655" name="l00655"></a><span class="lineno">  655</span><span class="keywordtype">void</span></div>
<div class="line"><a id="l00656" name="l00656"></a><span class="lineno">  656</span><a class="code hl_function" href="net_8h.html#add0197ad2daf24535c85e0ba1d28f099">coap_cancel_session_messages</a>(<a class="code hl_struct" href="structcoap__context__t.html">coap_context_t</a> *context,</div>
<div class="line"><a id="l00657" name="l00657"></a><span class="lineno">  657</span>                             <a class="code hl_struct" href="structcoap__session__t.html">coap_session_t</a> *session,</div>
<div class="line"><a id="l00658" name="l00658"></a><span class="lineno">  658</span>                             <a class="code hl_enumeration" href="coap__io_8h.html#a7ff2bb32137ca684be5539c156bdc418">coap_nack_reason_t</a> reason);</div>
<div class="line"><a id="l00659" name="l00659"></a><span class="lineno">  659</span> </div>
<div class="line"><a id="l00663" name="l00663"></a><span class="lineno">  663</span><span class="keywordtype">void</span> <a class="code hl_function" href="net_8h.html#a7bb944fc52f772655356d95724317401">coap_dispatch</a>(<a class="code hl_struct" href="structcoap__context__t.html">coap_context_t</a> *context, <a class="code hl_struct" href="structcoap__session__t.html">coap_session_t</a> *session,</div>
<div class="line"><a id="l00664" name="l00664"></a><span class="lineno">  664</span>                   <a class="code hl_struct" href="structcoap__pdu__t.html">coap_pdu_t</a> *pdu);</div>
<div class="line"><a id="l00665" name="l00665"></a><span class="lineno">  665</span> </div>
<div class="line"><a id="l00669" name="l00669"></a><span class="lineno">  669</span><span class="keywordtype">int</span> <a class="code hl_function" href="net_8h.html#a231e9a81ac7c03c3e5c251824a76d7b9">coap_can_exit</a>(<a class="code hl_struct" href="structcoap__context__t.html">coap_context_t</a> *context);</div>
<div class="line"><a id="l00670" name="l00670"></a><span class="lineno">  670</span> </div>
<div class="line"><a id="l00675" name="l00675"></a><span class="lineno"><a class="line" href="net_8h.html#a757eecd5cda6e32472313df73a9297fd">  675</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="net_8h.html#a757eecd5cda6e32472313df73a9297fd">coap_ticks</a>(<a class="code hl_typedef" href="group__clock.html#ga97ff1502e211b4ee6c3f15a598833438">coap_tick_t</a> *);</div>
<div class="line"><a id="l00676" name="l00676"></a><span class="lineno">  676</span> </div>
<div class="line"><a id="l00708" name="l00708"></a><span class="lineno">  708</span><span class="keywordtype">int</span> <a class="code hl_function" href="net_8h.html#a9c6736c0418c3adf5e7f6fb76f000cfe">coap_option_check_critical</a>(<a class="code hl_struct" href="structcoap__context__t.html">coap_context_t</a> *ctx,</div>
<div class="line"><a id="l00709" name="l00709"></a><span class="lineno">  709</span>                               <a class="code hl_struct" href="structcoap__pdu__t.html">coap_pdu_t</a> *pdu,</div>
<div class="line"><a id="l00710" name="l00710"></a><span class="lineno">  710</span>                               <a class="code hl_typedef" href="group__opt__filter.html#ga001c5b06ae9e02996509516871cb69a8">coap_opt_filter_t</a> unknown);</div>
<div class="line"><a id="l00711" name="l00711"></a><span class="lineno">  711</span> </div>
<div class="line"><a id="l00723" name="l00723"></a><span class="lineno">  723</span><a class="code hl_struct" href="structcoap__pdu__t.html">coap_pdu_t</a> *<a class="code hl_function" href="net_8h.html#a4b9a31728201d9c7c032513a185854ff">coap_wellknown_response</a>(<a class="code hl_struct" href="structcoap__context__t.html">coap_context_t</a> *context,</div>
<div class="line"><a id="l00724" name="l00724"></a><span class="lineno">  724</span>                                    <a class="code hl_struct" href="structcoap__session__t.html">coap_session_t</a> *session,</div>
<div class="line"><a id="l00725" name="l00725"></a><span class="lineno">  725</span>                                    <a class="code hl_struct" href="structcoap__pdu__t.html">coap_pdu_t</a> *request);</div>
<div class="line"><a id="l00726" name="l00726"></a><span class="lineno">  726</span> </div>
<div class="line"><a id="l00740" name="l00740"></a><span class="lineno">  740</span><span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code hl_function" href="net_8h.html#a816e87e31e2b90ada89eed085f016d93">coap_calc_timeout</a>(<a class="code hl_struct" href="structcoap__session__t.html">coap_session_t</a> *session, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> r);</div>
<div class="line"><a id="l00741" name="l00741"></a><span class="lineno">  741</span> </div>
<div class="line"><a id="l00742" name="l00742"></a><span class="lineno">  742</span><span class="preprocessor">#endif </span><span class="comment">/* COAP_NET_H_ */</span><span class="preprocessor"></span></div>
<div class="ttc" id="acoap__dtls_8h_html"><div class="ttname"><a href="coap__dtls_8h.html">coap_dtls.h</a></div></div>
<div class="ttc" id="acoap__event_8h_html"><div class="ttname"><a href="coap__event_8h.html">coap_event.h</a></div></div>
<div class="ttc" id="acoap__io_8h_html"><div class="ttname"><a href="coap__io_8h.html">coap_io.h</a></div></div>
<div class="ttc" id="acoap__io_8h_html_a7ff2bb32137ca684be5539c156bdc418"><div class="ttname"><a href="coap__io_8h.html#a7ff2bb32137ca684be5539c156bdc418">coap_nack_reason_t</a></div><div class="ttdeci">coap_nack_reason_t</div><div class="ttdef"><b>Definition</b> <a href="coap__io_8h_source.html#l00206">coap_io.h:206</a></div></div>
<div class="ttc" id="acoap__session_8h_html"><div class="ttname"><a href="coap__session_8h.html">coap_session.h</a></div></div>
<div class="ttc" id="acoap__time_8h_html"><div class="ttname"><a href="coap__time_8h.html">coap_time.h</a></div><div class="ttdoc">Clock Handling.</div></div>
<div class="ttc" id="agroup__clock_html_ga97ff1502e211b4ee6c3f15a598833438"><div class="ttname"><a href="group__clock.html#ga97ff1502e211b4ee6c3f15a598833438">coap_tick_t</a></div><div class="ttdeci">uint64_t coap_tick_t</div><div class="ttdoc">This data type represents internal timer ticks with COAP_TICKS_PER_SECOND resolution.</div><div class="ttdef"><b>Definition</b> <a href="coap__time_8h_source.html#l00085">coap_time.h:85</a></div></div>
<div class="ttc" id="agroup__events_html_ga47e52d9f286d209a75c5e2ce34af67ac"><div class="ttname"><a href="group__events.html#ga47e52d9f286d209a75c5e2ce34af67ac">coap_event_handler_t</a></div><div class="ttdeci">int(* coap_event_handler_t)(struct coap_context_t *, coap_event_t event, struct coap_session_t *session)</div><div class="ttdoc">Type for event handler functions that can be registered with a CoAP context using the unction coap_se...</div><div class="ttdef"><b>Definition</b> <a href="coap__event_8h_source.html#l00060">coap_event.h:60</a></div></div>
<div class="ttc" id="agroup__events_html_ga75a08ceb9a855937288ac3996656c872"><div class="ttname"><a href="group__events.html#ga75a08ceb9a855937288ac3996656c872">coap_event_t</a></div><div class="ttdeci">unsigned int coap_event_t</div><div class="ttdoc">Scalar type to represent different events, e.g.</div><div class="ttdef"><b>Definition</b> <a href="coap__event_8h_source.html#l00028">coap_event.h:28</a></div></div>
<div class="ttc" id="agroup__opt__filter_html_ga001c5b06ae9e02996509516871cb69a8"><div class="ttname"><a href="group__opt__filter.html#ga001c5b06ae9e02996509516871cb69a8">coap_opt_filter_t</a></div><div class="ttdeci">uint16_t coap_opt_filter_t[COAP_OPT_FILTER_SIZE]</div><div class="ttdoc">Fixed-size vector we use for option filtering.</div><div class="ttdef"><b>Definition</b> <a href="option_8h_source.html#l00119">option.h:119</a></div></div>
<div class="ttc" id="agroup__opt__filter_html_ga6b9ade4855f4440b3311296c03bc12aa"><div class="ttname"><a href="group__opt__filter.html#ga6b9ade4855f4440b3311296c03bc12aa">coap_option_setb</a></div><div class="ttdeci">COAP_STATIC_INLINE int coap_option_setb(coap_opt_filter_t filter, uint16_t type)</div><div class="ttdoc">Sets the corresponding bit for type in filter.</div><div class="ttdef"><b>Definition</b> <a href="option_8h_source.html#l00183">option.h:183</a></div></div>
<div class="ttc" id="alibcoap_8h_html_a58b4446dccd0b8c21b3532ef6b77a57d"><div class="ttname"><a href="libcoap_8h.html#a58b4446dccd0b8c21b3532ef6b77a57d">COAP_STATIC_INLINE</a></div><div class="ttdeci">#define COAP_STATIC_INLINE</div><div class="ttdef"><b>Definition</b> <a href="libcoap_8h_source.html#l00038">libcoap.h:38</a></div></div>
<div class="ttc" id="anet_8h_html_a0271cb8bba386ce230dd30496bbc8670"><div class="ttname"><a href="net_8h.html#a0271cb8bba386ce230dd30496bbc8670">coap_register_ping_handler</a></div><div class="ttdeci">COAP_STATIC_INLINE void coap_register_ping_handler(coap_context_t *context, coap_ping_handler_t handler)</div><div class="ttdoc">Registers a new message handler that is called whenever a CoAP Ping message is received.</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00258">net.h:258</a></div></div>
<div class="ttc" id="anet_8h_html_a0748d791fd2af516dd93fbadb660d440"><div class="ttname"><a href="net_8h.html#a0748d791fd2af516dd93fbadb660d440">coap_read</a></div><div class="ttdeci">void coap_read(coap_context_t *ctx, coap_tick_t now)</div><div class="ttdoc">For applications with their own message loop, reads all data from the network.</div><div class="ttdef"><b>Definition</b> <a href="net_8c_source.html#l01319">net.c:1319</a></div></div>
<div class="ttc" id="anet_8h_html_a116b4fec1683a94831f02b3e1a54dcac"><div class="ttname"><a href="net_8h.html#a116b4fec1683a94831f02b3e1a54dcac">coap_adjust_basetime</a></div><div class="ttdeci">unsigned int coap_adjust_basetime(coap_context_t *ctx, coap_tick_t now)</div><div class="ttdoc">Set sendqueue_basetime in the given context object ctx to now.</div><div class="ttdef"><b>Definition</b> <a href="net_8c_source.html#l00151">net.c:151</a></div></div>
<div class="ttc" id="anet_8h_html_a1ab369ca0a3c4fe7f8a9e0536346ff71"><div class="ttname"><a href="net_8h.html#a1ab369ca0a3c4fe7f8a9e0536346ff71">coap_new_context</a></div><div class="ttdeci">coap_context_t * coap_new_context(const coap_address_t *listen_addr)</div><div class="ttdoc">Creates a new coap_context_t object that will hold the CoAP stack status.</div><div class="ttdef"><b>Definition</b> <a href="net_8c_source.html#l00422">net.c:422</a></div></div>
<div class="ttc" id="anet_8h_html_a231e9a81ac7c03c3e5c251824a76d7b9"><div class="ttname"><a href="net_8h.html#a231e9a81ac7c03c3e5c251824a76d7b9">coap_can_exit</a></div><div class="ttdeci">int coap_can_exit(coap_context_t *context)</div><div class="ttdoc">Returns 1 if there are no messages to send or to dispatch in the context's queues.</div><div class="ttdef"><b>Definition</b> <a href="net_8c_source.html#l02321">net.c:2321</a></div></div>
<div class="ttc" id="anet_8h_html_a2c1e86998c712346baf2d116dbf1ac7f"><div class="ttname"><a href="net_8h.html#a2c1e86998c712346baf2d116dbf1ac7f">coap_delete_all</a></div><div class="ttdeci">void coap_delete_all(coap_queue_t *queue)</div><div class="ttdoc">Removes all items from given queue and frees the allocated storage.</div><div class="ttdef"><b>Definition</b> <a href="net_8c_source.html#l00245">net.c:245</a></div></div>
<div class="ttc" id="anet_8h_html_a3065434dae5c177558462dddc61d5514"><div class="ttname"><a href="net_8h.html#a3065434dae5c177558462dddc61d5514">coap_find_transaction</a></div><div class="ttdeci">coap_queue_t * coap_find_transaction(coap_queue_t *queue, coap_session_t *session, coap_tid_t id)</div><div class="ttdoc">Retrieves transaction from the queue.</div><div class="ttdef"><b>Definition</b> <a href="net_8c_source.html#l01525">net.c:1525</a></div></div>
<div class="ttc" id="anet_8h_html_a35b413b8771487a5384cfe670553276a"><div class="ttname"><a href="net_8h.html#a35b413b8771487a5384cfe670553276a">coap_context_set_pki</a></div><div class="ttdeci">int coap_context_set_pki(coap_context_t *context, coap_dtls_pki_t *setup_data)</div><div class="ttdoc">Set the context's default PKI information for a server.</div><div class="ttdef"><b>Definition</b> <a href="net_8c_source.html#l00392">net.c:392</a></div></div>
<div class="ttc" id="anet_8h_html_a4441ca51ddb6294729bd5f6971769d5f"><div class="ttname"><a href="net_8h.html#a4441ca51ddb6294729bd5f6971769d5f">coap_ping_handler_t</a></div><div class="ttdeci">void(* coap_ping_handler_t)(struct coap_context_t *context, coap_session_t *session, coap_pdu_t *received, const coap_tid_t id)</div><div class="ttdoc">Recieved Ping handler that is used as call-back in coap_context_t.</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00127">net.h:127</a></div></div>
<div class="ttc" id="anet_8h_html_a44c39a2314035989d3e07b9d9328e08c"><div class="ttname"><a href="net_8h.html#a44c39a2314035989d3e07b9d9328e08c">coap_delete_node</a></div><div class="ttdeci">int coap_delete_node(coap_queue_t *node)</div><div class="ttdoc">Destroys specified node.</div><div class="ttdef"><b>Definition</b> <a href="net_8c_source.html#l00225">net.c:225</a></div></div>
<div class="ttc" id="anet_8h_html_a480a3e967feaf00778dedf4c2fc68bd2"><div class="ttname"><a href="net_8h.html#a480a3e967feaf00778dedf4c2fc68bd2">coap_remove_from_queue</a></div><div class="ttdeci">int coap_remove_from_queue(coap_queue_t **queue, coap_session_t *session, coap_tid_t id, coap_queue_t **node)</div><div class="ttdoc">This function removes the element with given id from the list given list.</div><div class="ttdef"><b>Definition</b> <a href="net_8c_source.html#l01397">net.c:1397</a></div></div>
<div class="ttc" id="anet_8h_html_a4a0717822713783908dd33d300440b2e"><div class="ttname"><a href="net_8h.html#a4a0717822713783908dd33d300440b2e">coap_free_context</a></div><div class="ttdeci">void coap_free_context(coap_context_t *context)</div><div class="ttdoc">CoAP stack context must be released with coap_free_context().</div><div class="ttdef"><b>Definition</b> <a href="net_8c_source.html#l00518">net.c:518</a></div></div>
<div class="ttc" id="anet_8h_html_a4a9f7d31eafd7d82776f9b1a9291eea0"><div class="ttname"><a href="net_8h.html#a4a9f7d31eafd7d82776f9b1a9291eea0">coap_peek_next</a></div><div class="ttdeci">coap_queue_t * coap_peek_next(coap_context_t *context)</div><div class="ttdoc">Returns the next pdu to send without removing from sendqeue.</div><div class="ttdef"><b>Definition</b> <a href="net_8c_source.html#l00270">net.c:270</a></div></div>
<div class="ttc" id="anet_8h_html_a4af0d2a6075413637f8099fc9c59896b"><div class="ttname"><a href="net_8h.html#a4af0d2a6075413637f8099fc9c59896b">coap_register_pong_handler</a></div><div class="ttdeci">COAP_STATIC_INLINE void coap_register_pong_handler(coap_context_t *context, coap_pong_handler_t handler)</div><div class="ttdoc">Registers a new message handler that is called whenever a CoAP Pong message is received.</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00271">net.h:271</a></div></div>
<div class="ttc" id="anet_8h_html_a4b9a31728201d9c7c032513a185854ff"><div class="ttname"><a href="net_8h.html#a4b9a31728201d9c7c032513a185854ff">coap_wellknown_response</a></div><div class="ttdeci">coap_pdu_t * coap_wellknown_response(coap_context_t *context, coap_session_t *session, coap_pdu_t *request)</div><div class="ttdoc">Creates a new response for given request with the contents of .well-known/core.</div><div class="ttdef"><b>Definition</b> <a href="net_8c_source.html#l01649">net.c:1649</a></div></div>
<div class="ttc" id="anet_8h_html_a4f398929eef5944941ec6aa790f3abea"><div class="ttname"><a href="net_8h.html#a4f398929eef5944941ec6aa790f3abea">coap_nack_handler_t</a></div><div class="ttdeci">void(* coap_nack_handler_t)(struct coap_context_t *context, coap_session_t *session, coap_pdu_t *sent, coap_nack_reason_t reason, const coap_tid_t id)</div><div class="ttdoc">Negative Acknowedge handler that is used as call-back in coap_context_t.</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00113">net.h:113</a></div></div>
<div class="ttc" id="anet_8h_html_a5854b1394bfddd574e48af116e3aaaf9"><div class="ttname"><a href="net_8h.html#a5854b1394bfddd574e48af116e3aaaf9">coap_send_rst</a></div><div class="ttdeci">COAP_STATIC_INLINE coap_tid_t coap_send_rst(coap_session_t *session, coap_pdu_t *request)</div><div class="ttdoc">Sends an RST message with code 0 for the specified request to dst.</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00495">net.h:495</a></div></div>
<div class="ttc" id="anet_8h_html_a5e2cee998ccf618ac07aa54f5e5f8743"><div class="ttname"><a href="net_8h.html#a5e2cee998ccf618ac07aa54f5e5f8743">coap_handle_event</a></div><div class="ttdeci">int coap_handle_event(coap_context_t *context, coap_event_t event, coap_session_t *session)</div><div class="ttdoc">Invokes the event handler of context for the given event and data.</div><div class="ttdef"><b>Definition</b> <a href="net_8c_source.html#l02310">net.c:2310</a></div></div>
<div class="ttc" id="anet_8h_html_a665601c3c9ac88ef92125c1e62d679b2"><div class="ttname"><a href="net_8h.html#a665601c3c9ac88ef92125c1e62d679b2">coap_context_set_psk</a></div><div class="ttdeci">int coap_context_set_psk(coap_context_t *context, const char *hint, const uint8_t *key, size_t key_len)</div><div class="ttdoc">Set the context's default PSK hint and/or key for a server.</div><div class="ttdef"><b>Definition</b> <a href="net_8c_source.html#l00349">net.c:349</a></div></div>
<div class="ttc" id="anet_8h_html_a696acd1012ad1c2dba081ee5bea54fd8"><div class="ttname"><a href="net_8h.html#a696acd1012ad1c2dba081ee5bea54fd8">coap_register_option</a></div><div class="ttdeci">COAP_STATIC_INLINE void coap_register_option(coap_context_t *ctx, uint16_t type)</div><div class="ttdoc">Registers the option type type with the given context object ctx.</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00283">net.h:283</a></div></div>
<div class="ttc" id="anet_8h_html_a6aa830b46188549b51773f724eb8e752"><div class="ttname"><a href="net_8h.html#a6aa830b46188549b51773f724eb8e752">coap_send_message_type</a></div><div class="ttdeci">coap_tid_t coap_send_message_type(coap_session_t *session, coap_pdu_t *request, unsigned char type)</div><div class="ttdoc">Helper funktion to create and send a message with type (usually ACK or RST).</div><div class="ttdef"><b>Definition</b> <a href="net_8c_source.html#l00772">net.c:772</a></div></div>
<div class="ttc" id="anet_8h_html_a740acba1e579ecec3c67eca3b7522164"><div class="ttname"><a href="net_8h.html#a740acba1e579ecec3c67eca3b7522164">coap_pop_next</a></div><div class="ttdeci">coap_queue_t * coap_pop_next(coap_context_t *context)</div><div class="ttdoc">Returns the next pdu to send and removes it from the sendqeue.</div><div class="ttdef"><b>Definition</b> <a href="net_8c_source.html#l00278">net.c:278</a></div></div>
<div class="ttc" id="anet_8h_html_a757eecd5cda6e32472313df73a9297fd"><div class="ttname"><a href="net_8h.html#a757eecd5cda6e32472313df73a9297fd">coap_ticks</a></div><div class="ttdeci">void coap_ticks(coap_tick_t *)</div><div class="ttdoc">Returns the current value of an internal tick counter.</div></div>
<div class="ttc" id="anet_8h_html_a7b56f148fda46ca44655e1a9b373b97e"><div class="ttname"><a href="net_8h.html#a7b56f148fda46ca44655e1a9b373b97e">coap_context_set_pki_root_cas</a></div><div class="ttdeci">int coap_context_set_pki_root_cas(coap_context_t *context, const char *ca_file, const char *ca_dir)</div><div class="ttdoc">Set the context's default Root CA information for a client or server.</div><div class="ttdef"><b>Definition</b> <a href="net_8c_source.html#l00407">net.c:407</a></div></div>
<div class="ttc" id="anet_8h_html_a7bb944fc52f772655356d95724317401"><div class="ttname"><a href="net_8h.html#a7bb944fc52f772655356d95724317401">coap_dispatch</a></div><div class="ttdeci">void coap_dispatch(coap_context_t *context, coap_session_t *session, coap_pdu_t *pdu)</div><div class="ttdoc">Dispatches the PDUs from the receive queue in given context.</div><div class="ttdef"><b>Definition</b> <a href="net_8c_source.html#l02169">net.c:2169</a></div></div>
<div class="ttc" id="anet_8h_html_a7bee391c13b539a24d9f74b2fc23e08a"><div class="ttname"><a href="net_8h.html#a7bee391c13b539a24d9f74b2fc23e08a">coap_wait_ack</a></div><div class="ttdeci">coap_tid_t coap_wait_ack(coap_context_t *context, coap_session_t *session, coap_queue_t *node)</div><div class="ttdef"><b>Definition</b> <a href="net_8c_source.html#l00824">net.c:824</a></div></div>
<div class="ttc" id="anet_8h_html_a7cba9a2fabbd31cb622b828d2415a12c"><div class="ttname"><a href="net_8h.html#a7cba9a2fabbd31cb622b828d2415a12c">coap_register_response_handler</a></div><div class="ttdeci">COAP_STATIC_INLINE void coap_register_response_handler(coap_context_t *context, coap_response_handler_t handler)</div><div class="ttdoc">Registers a new message handler that is called whenever a response was received that matches an ongoi...</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00230">net.h:230</a></div></div>
<div class="ttc" id="anet_8h_html_a80d2c3b0141e98bf3f7914e7e59b9530"><div class="ttname"><a href="net_8h.html#a80d2c3b0141e98bf3f7914e7e59b9530">coap_insert_node</a></div><div class="ttdeci">int coap_insert_node(coap_queue_t **queue, coap_queue_t *node)</div><div class="ttdoc">Adds node to given queue, ordered by variable t in node.</div><div class="ttdef"><b>Definition</b> <a href="net_8c_source.html#l00188">net.c:188</a></div></div>
<div class="ttc" id="anet_8h_html_a816e87e31e2b90ada89eed085f016d93"><div class="ttname"><a href="net_8h.html#a816e87e31e2b90ada89eed085f016d93">coap_calc_timeout</a></div><div class="ttdeci">unsigned int coap_calc_timeout(coap_session_t *session, unsigned char r)</div><div class="ttdoc">Calculates the initial timeout based on the session CoAP transmission parameters 'ack_timeout',...</div><div class="ttdef"><b>Definition</b> <a href="net_8c_source.html#l00798">net.c:798</a></div></div>
<div class="ttc" id="anet_8h_html_a89aa2bb8a2345d32463a27fa5a4a5acc"><div class="ttname"><a href="net_8h.html#a89aa2bb8a2345d32463a27fa5a4a5acc">coap_pong_handler_t</a></div><div class="ttdeci">void(* coap_pong_handler_t)(struct coap_context_t *context, coap_session_t *session, coap_pdu_t *received, const coap_tid_t id)</div><div class="ttdoc">Recieved Pong handler that is used as call-back in coap_context_t.</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00140">net.h:140</a></div></div>
<div class="ttc" id="anet_8h_html_a909f47a00d77569908ca9f180afc87a3"><div class="ttname"><a href="net_8h.html#a909f47a00d77569908ca9f180afc87a3">coap_run_once</a></div><div class="ttdeci">int coap_run_once(coap_context_t *ctx, unsigned int timeout_ms)</div><div class="ttdoc">The main message processing loop.</div></div>
<div class="ttc" id="anet_8h_html_a9900c032b74bd57f67d489484a2b3207"><div class="ttname"><a href="net_8h.html#a9900c032b74bd57f67d489484a2b3207">coap_retransmit</a></div><div class="ttdeci">coap_tid_t coap_retransmit(coap_context_t *context, coap_queue_t *node)</div><div class="ttdoc">Handles retransmissions of confirmable messages.</div><div class="ttdef"><b>Definition</b> <a href="net_8c_source.html#l00931">net.c:931</a></div></div>
<div class="ttc" id="anet_8h_html_a9c6736c0418c3adf5e7f6fb76f000cfe"><div class="ttname"><a href="net_8h.html#a9c6736c0418c3adf5e7f6fb76f000cfe">coap_option_check_critical</a></div><div class="ttdeci">int coap_option_check_critical(coap_context_t *ctx, coap_pdu_t *pdu, coap_opt_filter_t unknown)</div><div class="ttdoc">Verifies that pdu contains no unknown critical options.</div><div class="ttdef"><b>Definition</b> <a href="net_8c_source.html#l00561">net.c:561</a></div></div>
<div class="ttc" id="anet_8h_html_aa54bb684429ee455f119fc5fb1feb197"><div class="ttname"><a href="net_8h.html#aa54bb684429ee455f119fc5fb1feb197">coap_new_error_response</a></div><div class="ttdeci">coap_pdu_t * coap_new_error_response(coap_pdu_t *request, unsigned char code, coap_opt_filter_t opts)</div><div class="ttdoc">Creates a new ACK PDU with specified error code.</div><div class="ttdef"><b>Definition</b> <a href="net_8c_source.html#l01533">net.c:1533</a></div></div>
<div class="ttc" id="anet_8h_html_aaac86ac50793f309678e4951ecf8863f"><div class="ttname"><a href="net_8h.html#aaac86ac50793f309678e4951ecf8863f">coap_write</a></div><div class="ttdeci">unsigned int coap_write(coap_context_t *ctx, coap_socket_t *sockets[], unsigned int max_sockets, unsigned int *num_sockets, coap_tick_t now)</div><div class="ttdoc">For applications with their own message loop, send all pending retransmits and return the list of soc...</div><div class="ttdef"><b>Definition</b> <a href="coap__io_8c_source.html#l01117">coap_io.c:1117</a></div></div>
<div class="ttc" id="anet_8h_html_ab0b0b5db03427c4313c01ec2b12cf8ed"><div class="ttname"><a href="net_8h.html#ab0b0b5db03427c4313c01ec2b12cf8ed">coap_send</a></div><div class="ttdeci">coap_tid_t coap_send(coap_session_t *session, coap_pdu_t *pdu)</div><div class="ttdoc">Sends a CoAP message to given peer.</div><div class="ttdef"><b>Definition</b> <a href="net_8c_source.html#l00876">net.c:876</a></div></div>
<div class="ttc" id="anet_8h_html_ab0ffe6312ad95fb07b0212f912cf196c"><div class="ttname"><a href="net_8h.html#ab0ffe6312ad95fb07b0212f912cf196c">coap_cancel_all_messages</a></div><div class="ttdeci">void coap_cancel_all_messages(coap_context_t *context, coap_session_t *session, const uint8_t *token, size_t token_length)</div><div class="ttdoc">Cancels all outstanding messages for session session that have the specified token.</div><div class="ttdef"><b>Definition</b> <a href="net_8c_source.html#l01484">net.c:1484</a></div></div>
<div class="ttc" id="anet_8h_html_ab31cd76353f751ec4dc5c033152df575"><div class="ttname"><a href="net_8h.html#ab31cd76353f751ec4dc5c033152df575">coap_send_error</a></div><div class="ttdeci">coap_tid_t coap_send_error(coap_session_t *session, coap_pdu_t *request, unsigned char code, coap_opt_filter_t opts)</div><div class="ttdoc">Sends an error response with code code for request request to dst.</div><div class="ttdef"><b>Definition</b> <a href="net_8c_source.html#l00754">net.c:754</a></div></div>
<div class="ttc" id="anet_8h_html_aba278b109415057d15196fa46afee970"><div class="ttname"><a href="net_8h.html#aba278b109415057d15196fa46afee970">coap_send_ack</a></div><div class="ttdeci">coap_tid_t coap_send_ack(coap_session_t *session, coap_pdu_t *request)</div><div class="ttdoc">Sends an ACK message with code 0 for the specified request to dst.</div><div class="ttdef"><b>Definition</b> <a href="net_8c_source.html#l00613">net.c:613</a></div></div>
<div class="ttc" id="anet_8h_html_aba2c62403587c8ee4e87adaffe9202da"><div class="ttname"><a href="net_8h.html#aba2c62403587c8ee4e87adaffe9202da">coap_get_app_data</a></div><div class="ttdeci">void * coap_get_app_data(const coap_context_t *context)</div><div class="ttdoc">Returns any application-specific data that has been stored with context using the function coap_set_a...</div><div class="ttdef"><b>Definition</b> <a href="net_8c_source.html#l00512">net.c:512</a></div></div>
<div class="ttc" id="anet_8h_html_acc875c3095491f3835f4d252bd72999d"><div class="ttname"><a href="net_8h.html#acc875c3095491f3835f4d252bd72999d">coap_context_set_keepalive</a></div><div class="ttdeci">void coap_context_set_keepalive(coap_context_t *context, unsigned int seconds)</div><div class="ttdoc">Set the context keepalive timer for sessions.</div><div class="ttdef"><b>Definition</b> <a href="net_8c_source.html#l00417">net.c:417</a></div></div>
<div class="ttc" id="anet_8h_html_ace22e7d3745fb725552c929b4da55c61"><div class="ttname"><a href="net_8h.html#ace22e7d3745fb725552c929b4da55c61">coap_set_app_data</a></div><div class="ttdeci">void coap_set_app_data(coap_context_t *context, void *data)</div><div class="ttdoc">Stores data with the given CoAP context.</div><div class="ttdef"><b>Definition</b> <a href="net_8c_source.html#l00506">net.c:506</a></div></div>
<div class="ttc" id="anet_8h_html_adbf4c617bdb13f0b61f83dca2ecdcc9e"><div class="ttname"><a href="net_8h.html#adbf4c617bdb13f0b61f83dca2ecdcc9e">coap_new_node</a></div><div class="ttdeci">coap_queue_t * coap_new_node(void)</div><div class="ttdoc">Creates a new node suitable for adding to the CoAP sendqueue.</div><div class="ttdef"><b>Definition</b> <a href="net_8c_source.html#l00254">net.c:254</a></div></div>
<div class="ttc" id="anet_8h_html_add0197ad2daf24535c85e0ba1d28f099"><div class="ttname"><a href="net_8h.html#add0197ad2daf24535c85e0ba1d28f099">coap_cancel_session_messages</a></div><div class="ttdeci">void coap_cancel_session_messages(coap_context_t *context, coap_session_t *session, coap_nack_reason_t reason)</div><div class="ttdoc">Cancels all outstanding messages for session session.</div><div class="ttdef"><b>Definition</b> <a href="net_8c_source.html#l01447">net.c:1447</a></div></div>
<div class="ttc" id="anet_8h_html_ade36148140b152d713b23d17bbcf0024"><div class="ttname"><a href="net_8h.html#ade36148140b152d713b23d17bbcf0024">coap_new_message_id</a></div><div class="ttdeci">COAP_STATIC_INLINE uint16_t coap_new_message_id(coap_session_t *session)</div><div class="ttdoc">Returns a new message id and updates session-&gt;tx_mid accordingly.</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00379">net.h:379</a></div></div>
<div class="ttc" id="anet_8h_html_ae150823383d9c96c22076e37de9a8192"><div class="ttname"><a href="net_8h.html#ae150823383d9c96c22076e37de9a8192">coap_register_nack_handler</a></div><div class="ttdeci">COAP_STATIC_INLINE void coap_register_nack_handler(coap_context_t *context, coap_nack_handler_t handler)</div><div class="ttdoc">Registers a new message handler that is called whenever a confirmable message (request or response) i...</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00245">net.h:245</a></div></div>
<div class="ttc" id="anet_8h_html_ae6b8ca457dd41f23372f9e9a7159312b"><div class="ttname"><a href="net_8h.html#ae6b8ca457dd41f23372f9e9a7159312b">coap_handle_dgram</a></div><div class="ttdeci">int coap_handle_dgram(coap_context_t *ctx, coap_session_t *session, uint8_t *data, size_t data_len)</div><div class="ttdoc">Parses and interprets a CoAP datagram with context ctx.</div><div class="ttdef"><b>Definition</b> <a href="net_8c_source.html#l01369">net.c:1369</a></div></div>
<div class="ttc" id="anet_8h_html_ae74b51652af6ed6620d101dc9a8a2431"><div class="ttname"><a href="net_8h.html#ae74b51652af6ed6620d101dc9a8a2431">coap_response_handler_t</a></div><div class="ttdeci">void(* coap_response_handler_t)(struct coap_context_t *context, coap_session_t *session, coap_pdu_t *sent, coap_pdu_t *received, const coap_tid_t id)</div><div class="ttdoc">Response handler that is used as call-back in coap_context_t.</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00098">net.h:98</a></div></div>
<div class="ttc" id="aoption_8h_html"><div class="ttname"><a href="option_8h.html">option.h</a></div><div class="ttdoc">Helpers for handling options in CoAP PDUs.</div></div>
<div class="ttc" id="apdu_8h_html"><div class="ttname"><a href="pdu_8h.html">pdu.h</a></div><div class="ttdoc">Pre-defined constants that reflect defaults for CoAP.</div></div>
<div class="ttc" id="apdu_8h_html_a9ca373ecc6b3ea33fa62791ce3d58c9a"><div class="ttname"><a href="pdu_8h.html#a9ca373ecc6b3ea33fa62791ce3d58c9a">COAP_MESSAGE_RST</a></div><div class="ttdeci">#define COAP_MESSAGE_RST</div><div class="ttdef"><b>Definition</b> <a href="pdu_8h_source.html#l00075">pdu.h:75</a></div></div>
<div class="ttc" id="apdu_8h_html_ac60fb9284ace878df3db4a2d621d9a8d"><div class="ttname"><a href="pdu_8h.html#ac60fb9284ace878df3db4a2d621d9a8d">coap_tid_t</a></div><div class="ttdeci">int coap_tid_t</div><div class="ttdoc">coap_tid_t is used to store CoAP transaction id, i.e.</div><div class="ttdef"><b>Definition</b> <a href="pdu_8h_source.html#l00238">pdu.h:238</a></div></div>
<div class="ttc" id="aprng_8h_html"><div class="ttname"><a href="prng_8h.html">prng.h</a></div><div class="ttdoc">Pseudo Random Numbers.</div></div>
<div class="ttc" id="astructcoap__address__t_html"><div class="ttname"><a href="structcoap__address__t.html">coap_address_t</a></div><div class="ttdoc">multi-purpose address abstraction</div><div class="ttdef"><b>Definition</b> <a href="address_8h_source.html#l00062">address.h:62</a></div></div>
<div class="ttc" id="astructcoap__async__state__t_html"><div class="ttname"><a href="structcoap__async__state__t.html">coap_async_state_t</a></div><div class="ttdef"><b>Definition</b> <a href="async_8h_source.html#l00031">async.h:31</a></div></div>
<div class="ttc" id="astructcoap__context__t_html"><div class="ttname"><a href="structcoap__context__t.html">coap_context_t</a></div><div class="ttdoc">The CoAP stack's global state is stored in a coap_context_t object.</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00148">net.h:148</a></div></div>
<div class="ttc" id="astructcoap__context__t_html_a080dc026c9eec48849d0140b433e04bb"><div class="ttname"><a href="structcoap__context__t.html#a080dc026c9eec48849d0140b433e04bb">coap_context_t::sendqueue_basetime</a></div><div class="ttdeci">coap_tick_t sendqueue_basetime</div><div class="ttdoc">The time stamp in the first element of the sendqeue is relative to sendqueue_basetime.</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00164">net.h:164</a></div></div>
<div class="ttc" id="astructcoap__context__t_html_a094b3eaad04393ebf8527f6f6b58112e"><div class="ttname"><a href="structcoap__context__t.html#a094b3eaad04393ebf8527f6f6b58112e">coap_context_t::pong_handler</a></div><div class="ttdeci">coap_pong_handler_t pong_handler</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00191">net.h:191</a></div></div>
<div class="ttc" id="astructcoap__context__t_html_a0f715479db8671158a800ac14ef3ada3"><div class="ttname"><a href="structcoap__context__t.html#a0f715479db8671158a800ac14ef3ada3">coap_context_t::psk_hint_len</a></div><div class="ttdeci">size_t psk_hint_len</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00209">net.h:209</a></div></div>
<div class="ttc" id="astructcoap__context__t_html_a1ad04b95f7ee48fa3575f142a81c3b99"><div class="ttname"><a href="structcoap__context__t.html#a1ad04b95f7ee48fa3575f142a81c3b99">coap_context_t::network_read</a></div><div class="ttdeci">ssize_t(* network_read)(coap_socket_t *sock, struct coap_packet_t *packet)</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00201">net.h:201</a></div></div>
<div class="ttc" id="astructcoap__context__t_html_a2dafa5220ce428f5788c5d08adde4838"><div class="ttname"><a href="structcoap__context__t.html#a2dafa5220ce428f5788c5d08adde4838">coap_context_t::csm_timeout</a></div><div class="ttdeci">unsigned int csm_timeout</div><div class="ttdoc">Timeout for waiting for a CSM from the remote side.</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00217">net.h:217</a></div></div>
<div class="ttc" id="astructcoap__context__t_html_a2e8ee7fcc1a46e74ea80484a7025a9c3"><div class="ttname"><a href="structcoap__context__t.html#a2e8ee7fcc1a46e74ea80484a7025a9c3">coap_context_t::app</a></div><div class="ttdeci">void * app</div><div class="ttdoc">application-specific data</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00219">net.h:219</a></div></div>
<div class="ttc" id="astructcoap__context__t_html_a3a85c3d3e14611f74907b47b20a83b6e"><div class="ttname"><a href="structcoap__context__t.html#a3a85c3d3e14611f74907b47b20a83b6e">coap_context_t::unknown_resource</a></div><div class="ttdeci">struct coap_resource_t * unknown_resource</div><div class="ttdoc">can be used for handling unknown resources</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00152">net.h:152</a></div></div>
<div class="ttc" id="astructcoap__context__t_html_a4f287951eac36a9488fd9524eb1cbdb8"><div class="ttname"><a href="structcoap__context__t.html#a4f287951eac36a9488fd9524eb1cbdb8">coap_context_t::async_state</a></div><div class="ttdeci">struct coap_async_state_t * async_state</div><div class="ttdoc">list of asynchronous transactions</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00158">net.h:158</a></div></div>
<div class="ttc" id="astructcoap__context__t_html_a5984a41d68fae2a68703f6afd940671f"><div class="ttname"><a href="structcoap__context__t.html#a5984a41d68fae2a68703f6afd940671f">coap_context_t::sessions</a></div><div class="ttdeci">coap_session_t * sessions</div><div class="ttdoc">client sessions</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00167">net.h:167</a></div></div>
<div class="ttc" id="astructcoap__context__t_html_a610b7410b2c13c8908590d671243f125"><div class="ttname"><a href="structcoap__context__t.html#a610b7410b2c13c8908590d671243f125">coap_context_t::nack_handler</a></div><div class="ttdeci">coap_nack_handler_t nack_handler</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00189">net.h:189</a></div></div>
<div class="ttc" id="astructcoap__context__t_html_a653c88c399ffa1dc3661ffdb9daabc2a"><div class="ttname"><a href="structcoap__context__t.html#a653c88c399ffa1dc3661ffdb9daabc2a">coap_context_t::ping_timeout</a></div><div class="ttdeci">unsigned int ping_timeout</div><div class="ttdoc">Minimum inactivity time before sending a ping message.</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00216">net.h:216</a></div></div>
<div class="ttc" id="astructcoap__context__t_html_a71aa494865b061f72ec0ecd633aa4e7f"><div class="ttname"><a href="structcoap__context__t.html#a71aa494865b061f72ec0ecd633aa4e7f">coap_context_t::get_server_psk</a></div><div class="ttdeci">size_t(* get_server_psk)(const coap_session_t *session, const uint8_t *identity, size_t identity_len, uint8_t *psk, size_t max_psk_len)</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00204">net.h:204</a></div></div>
<div class="ttc" id="astructcoap__context__t_html_a75eedd9da9c35fbbffce222fac0d6f1a"><div class="ttname"><a href="structcoap__context__t.html#a75eedd9da9c35fbbffce222fac0d6f1a">coap_context_t::network_send</a></div><div class="ttdeci">ssize_t(* network_send)(coap_socket_t *sock, const coap_session_t *session, const uint8_t *data, size_t datalen)</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00199">net.h:199</a></div></div>
<div class="ttc" id="astructcoap__context__t_html_a85e2737b90beb8afce13a6ef2bea87f4"><div class="ttname"><a href="structcoap__context__t.html#a85e2737b90beb8afce13a6ef2bea87f4">coap_context_t::dtls_context</a></div><div class="ttdeci">void * dtls_context</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00207">net.h:207</a></div></div>
<div class="ttc" id="astructcoap__context__t_html_a907e852e962a4ecafc3706c6b0d2e2d2"><div class="ttname"><a href="structcoap__context__t.html#a907e852e962a4ecafc3706c6b0d2e2d2">coap_context_t::known_options</a></div><div class="ttdeci">coap_opt_filter_t known_options</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00149">net.h:149</a></div></div>
<div class="ttc" id="astructcoap__context__t_html_a92b6634824600447d806e34e9cf58f9e"><div class="ttname"><a href="structcoap__context__t.html#a92b6634824600447d806e34e9cf58f9e">coap_context_t::ping_handler</a></div><div class="ttdeci">coap_ping_handler_t ping_handler</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00190">net.h:190</a></div></div>
<div class="ttc" id="astructcoap__context__t_html_aa07fd7e9c4a2ddc0a4d9b5149a885caf"><div class="ttname"><a href="structcoap__context__t.html#aa07fd7e9c4a2ddc0a4d9b5149a885caf">coap_context_t::max_handshake_sessions</a></div><div class="ttdeci">unsigned int max_handshake_sessions</div><div class="ttdoc">Maximum number of simultaneous negotating sessions per endpoint.</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00215">net.h:215</a></div></div>
<div class="ttc" id="astructcoap__context__t_html_aa1e842d6431edb653dcfb117c237657f"><div class="ttname"><a href="structcoap__context__t.html#aa1e842d6431edb653dcfb117c237657f">coap_context_t::sendqueue</a></div><div class="ttdeci">coap_queue_t * sendqueue</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00165">net.h:165</a></div></div>
<div class="ttc" id="astructcoap__context__t_html_aa6aba2771228fc473f42ed37c73948e4"><div class="ttname"><a href="structcoap__context__t.html#aa6aba2771228fc473f42ed37c73948e4">coap_context_t::message_id</a></div><div class="ttdeci">uint16_t message_id</div><div class="ttdoc">The last message id that was used is stored in this field.</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00186">net.h:186</a></div></div>
<div class="ttc" id="astructcoap__context__t_html_aaeae5156b5641ce3a0bb6d13f5c226d2"><div class="ttname"><a href="structcoap__context__t.html#aaeae5156b5641ce3a0bb6d13f5c226d2">coap_context_t::response_handler</a></div><div class="ttdeci">coap_response_handler_t response_handler</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00188">net.h:188</a></div></div>
<div class="ttc" id="astructcoap__context__t_html_aaf441070f9b1f2aea225fc61b60a6bb8"><div class="ttname"><a href="structcoap__context__t.html#aaf441070f9b1f2aea225fc61b60a6bb8">coap_context_t::resources</a></div><div class="ttdeci">struct coap_resource_t * resources</div><div class="ttdoc">hash table or list of known resources</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00150">net.h:150</a></div></div>
<div class="ttc" id="astructcoap__context__t_html_ab12d8e6ea4ec3ec2f196bd088d280f81"><div class="ttname"><a href="structcoap__context__t.html#ab12d8e6ea4ec3ec2f196bd088d280f81">coap_context_t::psk_key</a></div><div class="ttdeci">uint8_t * psk_key</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00210">net.h:210</a></div></div>
<div class="ttc" id="astructcoap__context__t_html_ab7d5935f4a3e1c94fa6bb12bf6400006"><div class="ttname"><a href="structcoap__context__t.html#ab7d5935f4a3e1c94fa6bb12bf6400006">coap_context_t::endpoint</a></div><div class="ttdeci">coap_endpoint_t * endpoint</div><div class="ttdoc">the endpoints used for listening</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00166">net.h:166</a></div></div>
<div class="ttc" id="astructcoap__context__t_html_aca05833745124e6987489c8ecfebcb63"><div class="ttname"><a href="structcoap__context__t.html#aca05833745124e6987489c8ecfebcb63">coap_context_t::get_server_hint</a></div><div class="ttdeci">size_t(* get_server_hint)(const coap_session_t *session, uint8_t *hint, size_t max_hint_len)</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00205">net.h:205</a></div></div>
<div class="ttc" id="astructcoap__context__t_html_acaa625e1c87b88a1dc48bd0d895185d9"><div class="ttname"><a href="structcoap__context__t.html#acaa625e1c87b88a1dc48bd0d895185d9">coap_context_t::handle_event</a></div><div class="ttdeci">coap_event_handler_t handle_event</div><div class="ttdoc">Callback function that is used to signal events to the application.</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00197">net.h:197</a></div></div>
<div class="ttc" id="astructcoap__context__t_html_ad724d5cbe61f367fc10162668c31c0a8"><div class="ttname"><a href="structcoap__context__t.html#ad724d5cbe61f367fc10162668c31c0a8">coap_context_t::psk_hint</a></div><div class="ttdeci">uint8_t * psk_hint</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00208">net.h:208</a></div></div>
<div class="ttc" id="astructcoap__context__t_html_ad7763d29c588f1b11b4c75820999066f"><div class="ttname"><a href="structcoap__context__t.html#ad7763d29c588f1b11b4c75820999066f">coap_context_t::session_timeout</a></div><div class="ttdeci">unsigned int session_timeout</div><div class="ttdoc">Number of seconds of inactivity after which an unused session will be closed.</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00213">net.h:213</a></div></div>
<div class="ttc" id="astructcoap__context__t_html_ae412c9932b9ced3c778d6029d21493c7"><div class="ttname"><a href="structcoap__context__t.html#ae412c9932b9ced3c778d6029d21493c7">coap_context_t::get_client_psk</a></div><div class="ttdeci">size_t(* get_client_psk)(const coap_session_t *session, const uint8_t *hint, size_t hint_len, uint8_t *identity, size_t *identity_len, size_t max_identity_len, uint8_t *psk, size_t max_psk_len)</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00203">net.h:203</a></div></div>
<div class="ttc" id="astructcoap__context__t_html_af2e8cc51d43707399bf19226afca7cd4"><div class="ttname"><a href="structcoap__context__t.html#af2e8cc51d43707399bf19226afca7cd4">coap_context_t::psk_key_len</a></div><div class="ttdeci">size_t psk_key_len</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00211">net.h:211</a></div></div>
<div class="ttc" id="astructcoap__context__t_html_aff37d887e0a881a33f6e99f9a75d36b2"><div class="ttname"><a href="structcoap__context__t.html#aff37d887e0a881a33f6e99f9a75d36b2">coap_context_t::max_idle_sessions</a></div><div class="ttdeci">unsigned int max_idle_sessions</div><div class="ttdoc">Maximum number of simultaneous unused sessions per endpoint.</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00214">net.h:214</a></div></div>
<div class="ttc" id="astructcoap__dtls__pki__t_html"><div class="ttname"><a href="structcoap__dtls__pki__t.html">coap_dtls_pki_t</a></div><div class="ttdoc">The structure used for defining the PKI setup data to be used.</div><div class="ttdef"><b>Definition</b> <a href="coap__dtls_8h_source.html#l00191">coap_dtls.h:191</a></div></div>
<div class="ttc" id="astructcoap__endpoint__t_html"><div class="ttname"><a href="structcoap__endpoint__t.html">coap_endpoint_t</a></div><div class="ttdoc">Abstraction of virtual endpoint that can be attached to coap_context_t.</div><div class="ttdef"><b>Definition</b> <a href="coap__session_8h_source.html#l00301">coap_session.h:301</a></div></div>
<div class="ttc" id="astructcoap__packet__t_html"><div class="ttname"><a href="structcoap__packet__t.html">coap_packet_t</a></div><div class="ttdef"><b>Definition</b> <a href="coap__io_8h_source.html#l00196">coap_io.h:196</a></div></div>
<div class="ttc" id="astructcoap__pdu__t_html"><div class="ttname"><a href="structcoap__pdu__t.html">coap_pdu_t</a></div><div class="ttdoc">structure for CoAP PDUs token, if any, follows the fixed size header, then options until payload mark...</div><div class="ttdef"><b>Definition</b> <a href="pdu_8h_source.html#l00285">pdu.h:285</a></div></div>
<div class="ttc" id="astructcoap__queue__t_html"><div class="ttname"><a href="structcoap__queue__t.html">coap_queue_t</a></div><div class="ttdoc">Queue entry.</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00039">net.h:39</a></div></div>
<div class="ttc" id="astructcoap__queue__t_html_a20ff974763849b7aeaca2cbf6f4b8f70"><div class="ttname"><a href="structcoap__queue__t.html#a20ff974763849b7aeaca2cbf6f4b8f70">coap_queue_t::session</a></div><div class="ttdeci">coap_session_t * session</div><div class="ttdoc">the CoAP session</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00045">net.h:45</a></div></div>
<div class="ttc" id="astructcoap__queue__t_html_a2bc9a6e3ed0442653e53b92f5fa92954"><div class="ttname"><a href="structcoap__queue__t.html#a2bc9a6e3ed0442653e53b92f5fa92954">coap_queue_t::pdu</a></div><div class="ttdeci">coap_pdu_t * pdu</div><div class="ttdoc">the CoAP PDU to send</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00047">net.h:47</a></div></div>
<div class="ttc" id="astructcoap__queue__t_html_a4d8b47a02fea39b9a9fc0501f81cbaa2"><div class="ttname"><a href="structcoap__queue__t.html#a4d8b47a02fea39b9a9fc0501f81cbaa2">coap_queue_t::timeout</a></div><div class="ttdeci">unsigned int timeout</div><div class="ttdoc">the randomized timeout value</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00044">net.h:44</a></div></div>
<div class="ttc" id="astructcoap__queue__t_html_a75428f649543d0779fce28c8538247d6"><div class="ttname"><a href="structcoap__queue__t.html#a75428f649543d0779fce28c8538247d6">coap_queue_t::next</a></div><div class="ttdeci">struct coap_queue_t * next</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00040">net.h:40</a></div></div>
<div class="ttc" id="astructcoap__queue__t_html_ab5edd7b3b3ddd98d8356febbd4726e7c"><div class="ttname"><a href="structcoap__queue__t.html#ab5edd7b3b3ddd98d8356febbd4726e7c">coap_queue_t::t</a></div><div class="ttdeci">coap_tick_t t</div><div class="ttdoc">when to send PDU for the next time</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00041">net.h:41</a></div></div>
<div class="ttc" id="astructcoap__queue__t_html_aeded9dd536f54ee47418575711e7dbac"><div class="ttname"><a href="structcoap__queue__t.html#aeded9dd536f54ee47418575711e7dbac">coap_queue_t::id</a></div><div class="ttdeci">coap_tid_t id</div><div class="ttdoc">CoAP transaction id.</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00046">net.h:46</a></div></div>
<div class="ttc" id="astructcoap__queue__t_html_aff24f5a43b3d2182535bc7bd2b5f5341"><div class="ttname"><a href="structcoap__queue__t.html#aff24f5a43b3d2182535bc7bd2b5f5341">coap_queue_t::retransmit_cnt</a></div><div class="ttdeci">unsigned char retransmit_cnt</div><div class="ttdoc">retransmission counter, will be removed when zero</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00042">net.h:42</a></div></div>
<div class="ttc" id="astructcoap__resource__t_html"><div class="ttname"><a href="structcoap__resource__t.html">coap_resource_t</a></div><div class="ttdef"><b>Definition</b> <a href="resource_8h_source.html#l00069">resource.h:69</a></div></div>
<div class="ttc" id="astructcoap__session__t_html"><div class="ttname"><a href="structcoap__session__t.html">coap_session_t</a></div><div class="ttdef"><b>Definition</b> <a href="coap__session_8h_source.html#l00056">coap_session.h:56</a></div></div>
<div class="ttc" id="astructcoap__session__t_html_a66b26cc53491f7a550ed7e7d93b0b145"><div class="ttname"><a href="structcoap__session__t.html#a66b26cc53491f7a550ed7e7d93b0b145">coap_session_t::tx_mid</a></div><div class="ttdeci">uint16_t tx_mid</div><div class="ttdoc">the last message id that was used in this session</div><div class="ttdef"><b>Definition</b> <a href="coap__session_8h_source.html#l00072">coap_session.h:72</a></div></div>
<div class="ttc" id="astructcoap__socket__t_html"><div class="ttname"><a href="structcoap__socket__t.html">coap_socket_t</a></div><div class="ttdef"><b>Definition</b> <a href="coap__io_8h_source.html#l00040">coap_io.h:40</a></div></div>
<div class="ttc" id="authash_8h_html_aba7bc1797add20fe3efdf37ced1182c5"><div class="ttname"><a href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a></div><div class="ttdeci">unsigned char uint8_t</div><div class="ttdef"><b>Definition</b> <a href="uthash_8h_source.html#l00079">uthash.h:79</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_a14d23a24002734ac2a3b997119f008e.html">coap2</a></li><li class="navelem"><a class="el" href="net_8h.html">net.h</a></li>
    <li class="footer">Generated on Fri Dec 27 2024 09:57:44 for libcoap by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8 </li>
  </ul>
</div>
</body>
</html>
